类 GatewayOuterClass.Port.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
istio.networking.v1alpha3.GatewayOuterClass.Port.Builder
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GatewayOuterClass.PortOrBuilder,Cloneable
public static final class GatewayOuterClass.Port.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
implements GatewayOuterClass.PortOrBuilder
Port describes the properties of a specific port of a service.Protobuf type
istio.networking.v1alpha3.Port-
方法概要
修饰符和类型方法说明addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Label assigned to the port.A valid non-negative integer port number.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The protocol exposed on the port.The port number on the endpoint where the traffic will be received.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Label assigned to the port.com.google.protobuf.ByteStringLabel assigned to the port.intA valid non-negative integer port number.The protocol exposed on the port.com.google.protobuf.ByteStringThe protocol exposed on the port.intThe port number on the endpoint where the traffic will be received.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(GatewayOuterClass.Port other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Label assigned to the port.setNameBytes(com.google.protobuf.ByteString value) Label assigned to the port.setNumber(int value) A valid non-negative integer port number.setProtocol(String value) The protocol exposed on the port.setProtocolBytes(com.google.protobuf.ByteString value) The protocol exposed on the port.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTargetPort(int value) The port number on the endpoint where the traffic will be received.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString从类继承的方法 com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException从接口继承的方法 com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom从接口继承的方法 com.google.protobuf.MessageLite.Builder
mergeFrom从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
clear
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- 指定者:
getDescriptorForType在接口中com.google.protobuf.Message.Builder- 指定者:
getDescriptorForType在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getDescriptorForType在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
getDefaultInstanceForType
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
setField
public GatewayOuterClass.Port.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
clearField
public GatewayOuterClass.Port.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
clearOneof
public GatewayOuterClass.Port.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
setRepeatedField
public GatewayOuterClass.Port.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - 指定者:
setRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
setRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
addRepeatedField
public GatewayOuterClass.Port.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
mergeFrom
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
mergeFrom
public GatewayOuterClass.Port.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>- 抛出:
IOException
-
getNumber
public int getNumber()A valid non-negative integer port number.
uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getNumber在接口中GatewayOuterClass.PortOrBuilder- 返回:
- The number.
-
setNumber
A valid non-negative integer port number.
uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The number to set.- 返回:
- This builder for chaining.
-
clearNumber
A valid non-negative integer port number.
uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
getProtocol
The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getProtocol在接口中GatewayOuterClass.PortOrBuilder- 返回:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getProtocolBytes在接口中GatewayOuterClass.PortOrBuilder- 返回:
- The bytes for protocol.
-
setProtocol
The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The protocol to set.- 返回:
- This builder for chaining.
-
clearProtocol
The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
setProtocolBytes
The protocol exposed on the port. MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS. TLS implies the connection will be routed based on the SNI header to the destination without terminating the TLS connection.
string protocol = 2 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The bytes for protocol to set.- 返回:
- This builder for chaining.
-
getName
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getName在接口中GatewayOuterClass.PortOrBuilder- 返回:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 指定者:
getNameBytes在接口中GatewayOuterClass.PortOrBuilder- 返回:
- The bytes for name.
-
setName
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The name to set.- 返回:
- This builder for chaining.
-
clearName
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
setNameBytes
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The bytes for name to set.- 返回:
- This builder for chaining.
-
getTargetPort
public int getTargetPort()The port number on the endpoint where the traffic will be received. Applicable only when used with ServiceEntries.
uint32 target_port = 4;- 指定者:
getTargetPort在接口中GatewayOuterClass.PortOrBuilder- 返回:
- The targetPort.
-
setTargetPort
The port number on the endpoint where the traffic will be received. Applicable only when used with ServiceEntries.
uint32 target_port = 4;- 参数:
value- The targetPort to set.- 返回:
- This builder for chaining.
-
clearTargetPort
The port number on the endpoint where the traffic will be received. Applicable only when used with ServiceEntries.
uint32 target_port = 4;- 返回:
- This builder for chaining.
-
setUnknownFields
public final GatewayOuterClass.Port.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.Port.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-