类 GatewayOuterClass.Port.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typeistio.networking.v1alpha3.Port
-
-
字段概要
字段 修饰符和类型 字段 说明 private java.lang.Objectname_private intnumber_private java.lang.Objectprotocol_private inttargetPort_
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 GatewayOuterClass.Port.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)GatewayOuterClass.Portbuild()GatewayOuterClass.PortbuildPartial()GatewayOuterClass.Port.Builderclear()GatewayOuterClass.Port.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)GatewayOuterClass.Port.BuilderclearName()Label assigned to the port.GatewayOuterClass.Port.BuilderclearNumber()A valid non-negative integer port number.GatewayOuterClass.Port.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)GatewayOuterClass.Port.BuilderclearProtocol()The protocol exposed on the port.GatewayOuterClass.Port.BuilderclearTargetPort()The port number on the endpoint where the traffic will be received.GatewayOuterClass.Port.Builderclone()GatewayOuterClass.PortgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetName()Label assigned to the port.com.google.protobuf.ByteStringgetNameBytes()Label assigned to the port.intgetNumber()A valid non-negative integer port number.java.lang.StringgetProtocol()The protocol exposed on the port.com.google.protobuf.ByteStringgetProtocolBytes()The protocol exposed on the port.intgetTargetPort()The port number on the endpoint where the traffic will be received.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()GatewayOuterClass.Port.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)GatewayOuterClass.Port.BuildermergeFrom(com.google.protobuf.Message other)GatewayOuterClass.Port.BuildermergeFrom(GatewayOuterClass.Port other)GatewayOuterClass.Port.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)GatewayOuterClass.Port.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)GatewayOuterClass.Port.BuildersetName(java.lang.String value)Label assigned to the port.GatewayOuterClass.Port.BuildersetNameBytes(com.google.protobuf.ByteString value)Label assigned to the port.GatewayOuterClass.Port.BuildersetNumber(int value)A valid non-negative integer port number.GatewayOuterClass.Port.BuildersetProtocol(java.lang.String value)The protocol exposed on the port.GatewayOuterClass.Port.BuildersetProtocolBytes(com.google.protobuf.ByteString value)The protocol exposed on the port.GatewayOuterClass.Port.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)GatewayOuterClass.Port.BuildersetTargetPort(int value)The port number on the endpoint where the traffic will be received.GatewayOuterClass.Port.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
从类继承的方法 com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
-
-
-
方法详细资料
-
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
public 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
public GatewayOuterClass.Port getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public GatewayOuterClass.Port build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public GatewayOuterClass.Port buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
clone
public GatewayOuterClass.Port.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, java.lang.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, java.lang.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, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Port.Builder>
-
mergeFrom
public GatewayOuterClass.Port.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>
-
mergeFrom
public GatewayOuterClass.Port.Builder mergeFrom(GatewayOuterClass.Port other)
-
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 java.io.IOException
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 指定者:
mergeFrom在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.Port.Builder>- 抛出:
java.io.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
public GatewayOuterClass.Port.Builder setNumber(int value)
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
public GatewayOuterClass.Port.Builder clearNumber()
A valid non-negative integer port number.
uint32 number = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
getProtocol
public java.lang.String 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
public GatewayOuterClass.Port.Builder setProtocol(java.lang.String value)
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
public GatewayOuterClass.Port.Builder 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
public GatewayOuterClass.Port.Builder setProtocolBytes(com.google.protobuf.ByteString value)
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
public java.lang.String 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
public GatewayOuterClass.Port.Builder setName(java.lang.String value)
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 参数:
value- The name to set.- 返回:
- This builder for chaining.
-
clearName
public GatewayOuterClass.Port.Builder clearName()
Label assigned to the port.
string name = 3 [(.google.api.field_behavior) = REQUIRED];- 返回:
- This builder for chaining.
-
setNameBytes
public GatewayOuterClass.Port.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public GatewayOuterClass.Port.Builder setTargetPort(int value)
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
public GatewayOuterClass.Port.Builder 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>
-
-