类 VirtualServiceOuterClass.L4MatchAttributes.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
- istio.networking.v1alpha3.VirtualServiceOuterClass.L4MatchAttributes.Builder
-
- 所有已实现的接口:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,VirtualServiceOuterClass.L4MatchAttributesOrBuilder,java.lang.Cloneable
public static final class VirtualServiceOuterClass.L4MatchAttributes.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder> implements VirtualServiceOuterClass.L4MatchAttributesOrBuilder
L4 connection match attributes. Note that L4 connection matching support is incomplete.
Protobuf typeistio.networking.v1alpha3.L4MatchAttributes
-
-
字段概要
字段 修饰符和类型 字段 说明 private intbitField0_private com.google.protobuf.LazyStringListdestinationSubnets_private com.google.protobuf.LazyStringListgateways_private intport_private com.google.protobuf.MapField<java.lang.String,java.lang.String>sourceLabels_private java.lang.ObjectsourceNamespace_private java.lang.ObjectsourceSubnet_
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 VirtualServiceOuterClass.L4MatchAttributes.BuilderaddAllDestinationSubnets(java.lang.Iterable<java.lang.String> values)IPv4 or IPv6 ip addresses of destination with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuilderaddAllGateways(java.lang.Iterable<java.lang.String> values)Names of gateways where the rule should be applied.VirtualServiceOuterClass.L4MatchAttributes.BuilderaddDestinationSubnets(java.lang.String value)IPv4 or IPv6 ip addresses of destination with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuilderaddDestinationSubnetsBytes(com.google.protobuf.ByteString value)IPv4 or IPv6 ip addresses of destination with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuilderaddGateways(java.lang.String value)Names of gateways where the rule should be applied.VirtualServiceOuterClass.L4MatchAttributes.BuilderaddGatewaysBytes(com.google.protobuf.ByteString value)Names of gateways where the rule should be applied.VirtualServiceOuterClass.L4MatchAttributes.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)VirtualServiceOuterClass.L4MatchAttributesbuild()VirtualServiceOuterClass.L4MatchAttributesbuildPartial()private voidbuildPartial0(VirtualServiceOuterClass.L4MatchAttributes result)private voidbuildPartialRepeatedFields(VirtualServiceOuterClass.L4MatchAttributes result)VirtualServiceOuterClass.L4MatchAttributes.Builderclear()VirtualServiceOuterClass.L4MatchAttributes.BuilderclearDestinationSubnets()IPv4 or IPv6 ip addresses of destination with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VirtualServiceOuterClass.L4MatchAttributes.BuilderclearGateways()Names of gateways where the rule should be applied.VirtualServiceOuterClass.L4MatchAttributes.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VirtualServiceOuterClass.L4MatchAttributes.BuilderclearPort()Specifies the port on the host that is being addressed.VirtualServiceOuterClass.L4MatchAttributes.BuilderclearSourceLabels()VirtualServiceOuterClass.L4MatchAttributes.BuilderclearSourceNamespace()Source namespace constraining the applicability of a rule to workloads in that namespace.VirtualServiceOuterClass.L4MatchAttributes.BuilderclearSourceSubnet()IPv4 or IPv6 ip address of source with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.Builderclone()booleancontainsSourceLabels(java.lang.String key)One or more labels that constrain the applicability of a rule to workloads with the given labels.private voidensureDestinationSubnetsIsMutable()private voidensureGatewaysIsMutable()VirtualServiceOuterClass.L4MatchAttributesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetDestinationSubnets(int index)IPv4 or IPv6 ip addresses of destination with optional subnet.com.google.protobuf.ByteStringgetDestinationSubnetsBytes(int index)IPv4 or IPv6 ip addresses of destination with optional subnet.intgetDestinationSubnetsCount()IPv4 or IPv6 ip addresses of destination with optional subnet.com.google.protobuf.ProtocolStringListgetDestinationSubnetsList()IPv4 or IPv6 ip addresses of destination with optional subnet.java.lang.StringgetGateways(int index)Names of gateways where the rule should be applied.com.google.protobuf.ByteStringgetGatewaysBytes(int index)Names of gateways where the rule should be applied.intgetGatewaysCount()Names of gateways where the rule should be applied.com.google.protobuf.ProtocolStringListgetGatewaysList()Names of gateways where the rule should be applied.java.util.Map<java.lang.String,java.lang.String>getMutableSourceLabels()已过时。intgetPort()Specifies the port on the host that is being addressed.java.util.Map<java.lang.String,java.lang.String>getSourceLabels()已过时。intgetSourceLabelsCount()One or more labels that constrain the applicability of a rule to workloads with the given labels.java.util.Map<java.lang.String,java.lang.String>getSourceLabelsMap()One or more labels that constrain the applicability of a rule to workloads with the given labels.java.lang.StringgetSourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels that constrain the applicability of a rule to workloads with the given labels.java.lang.StringgetSourceLabelsOrThrow(java.lang.String key)One or more labels that constrain the applicability of a rule to workloads with the given labels.java.lang.StringgetSourceNamespace()Source namespace constraining the applicability of a rule to workloads in that namespace.com.google.protobuf.ByteStringgetSourceNamespaceBytes()Source namespace constraining the applicability of a rule to workloads in that namespace.java.lang.StringgetSourceSubnet()IPv4 or IPv6 ip address of source with optional subnet.com.google.protobuf.ByteStringgetSourceSubnetBytes()IPv4 or IPv6 ip address of source with optional subnet.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetMutableSourceLabels()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetSourceLabels()booleanisInitialized()VirtualServiceOuterClass.L4MatchAttributes.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VirtualServiceOuterClass.L4MatchAttributes.BuildermergeFrom(com.google.protobuf.Message other)VirtualServiceOuterClass.L4MatchAttributes.BuildermergeFrom(VirtualServiceOuterClass.L4MatchAttributes other)VirtualServiceOuterClass.L4MatchAttributes.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VirtualServiceOuterClass.L4MatchAttributes.BuilderputAllSourceLabels(java.util.Map<java.lang.String,java.lang.String> values)One or more labels that constrain the applicability of a rule to workloads with the given labels.VirtualServiceOuterClass.L4MatchAttributes.BuilderputSourceLabels(java.lang.String key, java.lang.String value)One or more labels that constrain the applicability of a rule to workloads with the given labels.VirtualServiceOuterClass.L4MatchAttributes.BuilderremoveSourceLabels(java.lang.String key)One or more labels that constrain the applicability of a rule to workloads with the given labels.VirtualServiceOuterClass.L4MatchAttributes.BuildersetDestinationSubnets(int index, java.lang.String value)IPv4 or IPv6 ip addresses of destination with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)VirtualServiceOuterClass.L4MatchAttributes.BuildersetGateways(int index, java.lang.String value)Names of gateways where the rule should be applied.VirtualServiceOuterClass.L4MatchAttributes.BuildersetPort(int value)Specifies the port on the host that is being addressed.VirtualServiceOuterClass.L4MatchAttributes.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)VirtualServiceOuterClass.L4MatchAttributes.BuildersetSourceNamespace(java.lang.String value)Source namespace constraining the applicability of a rule to workloads in that namespace.VirtualServiceOuterClass.L4MatchAttributes.BuildersetSourceNamespaceBytes(com.google.protobuf.ByteString value)Source namespace constraining the applicability of a rule to workloads in that namespace.VirtualServiceOuterClass.L4MatchAttributes.BuildersetSourceSubnet(java.lang.String value)IPv4 or IPv6 ip address of source with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuildersetSourceSubnetBytes(com.google.protobuf.ByteString value)IPv4 or IPv6 ip address of source with optional subnet.VirtualServiceOuterClass.L4MatchAttributes.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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
-
-
-
-
字段详细资料
-
bitField0_
private int bitField0_
-
destinationSubnets_
private com.google.protobuf.LazyStringList destinationSubnets_
-
port_
private int port_
-
sourceSubnet_
private java.lang.Object sourceSubnet_
-
sourceLabels_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> sourceLabels_
-
gateways_
private com.google.protobuf.LazyStringList gateways_
-
sourceNamespace_
private java.lang.Object sourceNamespace_
-
-
方法详细资料
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- 覆盖:
internalGetMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- 覆盖:
internalGetMutableMapField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
clear
public VirtualServiceOuterClass.L4MatchAttributes.Builder clear()
- 指定者:
clear在接口中com.google.protobuf.Message.Builder- 指定者:
clear在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clear在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.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<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
getDefaultInstanceForType
public VirtualServiceOuterClass.L4MatchAttributes getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
build
public VirtualServiceOuterClass.L4MatchAttributes build()
- 指定者:
build在接口中com.google.protobuf.Message.Builder- 指定者:
build在接口中com.google.protobuf.MessageLite.Builder
-
buildPartial
public VirtualServiceOuterClass.L4MatchAttributes buildPartial()
- 指定者:
buildPartial在接口中com.google.protobuf.Message.Builder- 指定者:
buildPartial在接口中com.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(VirtualServiceOuterClass.L4MatchAttributes result)
-
buildPartial0
private void buildPartial0(VirtualServiceOuterClass.L4MatchAttributes result)
-
clone
public VirtualServiceOuterClass.L4MatchAttributes.Builder clone()
- 指定者:
clone在接口中com.google.protobuf.Message.Builder- 指定者:
clone在接口中com.google.protobuf.MessageLite.Builder- 覆盖:
clone在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
setField
public VirtualServiceOuterClass.L4MatchAttributes.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
setField在接口中com.google.protobuf.Message.Builder- 覆盖:
setField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
clearField
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- 指定者:
clearField在接口中com.google.protobuf.Message.Builder- 覆盖:
clearField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
clearOneof
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 指定者:
clearOneof在接口中com.google.protobuf.Message.Builder- 覆盖:
clearOneof在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
setRepeatedField
public VirtualServiceOuterClass.L4MatchAttributes.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<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
addRepeatedField
public VirtualServiceOuterClass.L4MatchAttributes.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- 指定者:
addRepeatedField在接口中com.google.protobuf.Message.Builder- 覆盖:
addRepeatedField在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
mergeFrom
public VirtualServiceOuterClass.L4MatchAttributes.Builder mergeFrom(com.google.protobuf.Message other)
- 指定者:
mergeFrom在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeFrom在类中com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
mergeFrom
public VirtualServiceOuterClass.L4MatchAttributes.Builder mergeFrom(VirtualServiceOuterClass.L4MatchAttributes other)
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
mergeFrom
public VirtualServiceOuterClass.L4MatchAttributes.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<VirtualServiceOuterClass.L4MatchAttributes.Builder>- 抛出:
java.io.IOException
-
ensureDestinationSubnetsIsMutable
private void ensureDestinationSubnetsIsMutable()
-
getDestinationSubnetsList
public com.google.protobuf.ProtocolStringList getDestinationSubnetsList()
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 指定者:
getDestinationSubnetsList在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- A list containing the destinationSubnets.
-
getDestinationSubnetsCount
public int getDestinationSubnetsCount()
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 指定者:
getDestinationSubnetsCount在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The count of destinationSubnets.
-
getDestinationSubnets
public java.lang.String getDestinationSubnets(int index)
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 指定者:
getDestinationSubnets在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The destinationSubnets at the given index.
-
getDestinationSubnetsBytes
public com.google.protobuf.ByteString getDestinationSubnetsBytes(int index)
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 指定者:
getDestinationSubnetsBytes在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the destinationSubnets at the given index.
-
setDestinationSubnets
public VirtualServiceOuterClass.L4MatchAttributes.Builder setDestinationSubnets(int index, java.lang.String value)
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 参数:
index- The index to set the value at.value- The destinationSubnets to set.- 返回:
- This builder for chaining.
-
addDestinationSubnets
public VirtualServiceOuterClass.L4MatchAttributes.Builder addDestinationSubnets(java.lang.String value)
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 参数:
value- The destinationSubnets to add.- 返回:
- This builder for chaining.
-
addAllDestinationSubnets
public VirtualServiceOuterClass.L4MatchAttributes.Builder addAllDestinationSubnets(java.lang.Iterable<java.lang.String> values)
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 参数:
values- The destinationSubnets to add.- 返回:
- This builder for chaining.
-
clearDestinationSubnets
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearDestinationSubnets()
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 返回:
- This builder for chaining.
-
addDestinationSubnetsBytes
public VirtualServiceOuterClass.L4MatchAttributes.Builder addDestinationSubnetsBytes(com.google.protobuf.ByteString value)
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
repeated string destination_subnets = 1;- 参数:
value- The bytes of the destinationSubnets to add.- 返回:
- This builder for chaining.
-
getPort
public int getPort()
Specifies the port on the host that is being addressed. Many services only expose a single port or label ports with the protocols they support, in these cases it is not required to explicitly select the port.
uint32 port = 2;- 指定者:
getPort在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The port.
-
setPort
public VirtualServiceOuterClass.L4MatchAttributes.Builder setPort(int value)
Specifies the port on the host that is being addressed. Many services only expose a single port or label ports with the protocols they support, in these cases it is not required to explicitly select the port.
uint32 port = 2;- 参数:
value- The port to set.- 返回:
- This builder for chaining.
-
clearPort
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearPort()
Specifies the port on the host that is being addressed. Many services only expose a single port or label ports with the protocols they support, in these cases it is not required to explicitly select the port.
uint32 port = 2;- 返回:
- This builder for chaining.
-
getSourceSubnet
public java.lang.String getSourceSubnet()
IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d $hide_from_docs
string source_subnet = 3;- 指定者:
getSourceSubnet在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The sourceSubnet.
-
getSourceSubnetBytes
public com.google.protobuf.ByteString getSourceSubnetBytes()
IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d $hide_from_docs
string source_subnet = 3;- 指定者:
getSourceSubnetBytes在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The bytes for sourceSubnet.
-
setSourceSubnet
public VirtualServiceOuterClass.L4MatchAttributes.Builder setSourceSubnet(java.lang.String value)
IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d $hide_from_docs
string source_subnet = 3;- 参数:
value- The sourceSubnet to set.- 返回:
- This builder for chaining.
-
clearSourceSubnet
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearSourceSubnet()
IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d $hide_from_docs
string source_subnet = 3;- 返回:
- This builder for chaining.
-
setSourceSubnetBytes
public VirtualServiceOuterClass.L4MatchAttributes.Builder setSourceSubnetBytes(com.google.protobuf.ByteString value)
IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d $hide_from_docs
string source_subnet = 3;- 参数:
value- The bytes for sourceSubnet to set.- 返回:
- This builder for chaining.
-
internalGetSourceLabels
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetSourceLabels()
-
internalGetMutableSourceLabels
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetMutableSourceLabels()
-
getSourceLabelsCount
public int getSourceLabelsCount()
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
containsSourceLabels
public boolean containsSourceLabels(java.lang.String key)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
getSourceLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getSourceLabels()
已过时。UsegetSourceLabelsMap()instead.
-
getSourceLabelsMap
public java.util.Map<java.lang.String,java.lang.String> getSourceLabelsMap()
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
getSourceLabelsOrDefault
public java.lang.String getSourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
getSourceLabelsOrThrow
public java.lang.String getSourceLabelsOrThrow(java.lang.String key)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
clearSourceLabels
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearSourceLabels()
-
removeSourceLabels
public VirtualServiceOuterClass.L4MatchAttributes.Builder removeSourceLabels(java.lang.String key)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
getMutableSourceLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableSourceLabels()
已过时。Use alternate mutation accessors instead.
-
putSourceLabels
public VirtualServiceOuterClass.L4MatchAttributes.Builder putSourceLabels(java.lang.String key, java.lang.String value)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
putAllSourceLabels
public VirtualServiceOuterClass.L4MatchAttributes.Builder putAllSourceLabels(java.util.Map<java.lang.String,java.lang.String> values)
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it should include the reserved gateway `mesh` in order for this field to be applicable.
map<string, string> source_labels = 4;
-
ensureGatewaysIsMutable
private void ensureGatewaysIsMutable()
-
getGatewaysList
public com.google.protobuf.ProtocolStringList getGatewaysList()
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 指定者:
getGatewaysList在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- A list containing the gateways.
-
getGatewaysCount
public int getGatewaysCount()
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 指定者:
getGatewaysCount在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The count of gateways.
-
getGateways
public java.lang.String getGateways(int index)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 指定者:
getGateways在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 参数:
index- The index of the element to return.- 返回:
- The gateways at the given index.
-
getGatewaysBytes
public com.google.protobuf.ByteString getGatewaysBytes(int index)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 指定者:
getGatewaysBytes在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 参数:
index- The index of the value to return.- 返回:
- The bytes of the gateways at the given index.
-
setGateways
public VirtualServiceOuterClass.L4MatchAttributes.Builder setGateways(int index, java.lang.String value)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 参数:
index- The index to set the value at.value- The gateways to set.- 返回:
- This builder for chaining.
-
addGateways
public VirtualServiceOuterClass.L4MatchAttributes.Builder addGateways(java.lang.String value)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 参数:
value- The gateways to add.- 返回:
- This builder for chaining.
-
addAllGateways
public VirtualServiceOuterClass.L4MatchAttributes.Builder addAllGateways(java.lang.Iterable<java.lang.String> values)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 参数:
values- The gateways to add.- 返回:
- This builder for chaining.
-
clearGateways
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearGateways()
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 返回:
- This builder for chaining.
-
addGatewaysBytes
public VirtualServiceOuterClass.L4MatchAttributes.Builder addGatewaysBytes(com.google.protobuf.ByteString value)
Names of gateways where the rule should be applied. Gateway names in the top-level `gateways` field of the VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
repeated string gateways = 5;- 参数:
value- The bytes of the gateways to add.- 返回:
- This builder for chaining.
-
getSourceNamespace
public java.lang.String getSourceNamespace()
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 6;- 指定者:
getSourceNamespace在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The sourceNamespace.
-
getSourceNamespaceBytes
public com.google.protobuf.ByteString getSourceNamespaceBytes()
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 6;- 指定者:
getSourceNamespaceBytes在接口中VirtualServiceOuterClass.L4MatchAttributesOrBuilder- 返回:
- The bytes for sourceNamespace.
-
setSourceNamespace
public VirtualServiceOuterClass.L4MatchAttributes.Builder setSourceNamespace(java.lang.String value)
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 6;- 参数:
value- The sourceNamespace to set.- 返回:
- This builder for chaining.
-
clearSourceNamespace
public VirtualServiceOuterClass.L4MatchAttributes.Builder clearSourceNamespace()
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 6;- 返回:
- This builder for chaining.
-
setSourceNamespaceBytes
public VirtualServiceOuterClass.L4MatchAttributes.Builder setSourceNamespaceBytes(com.google.protobuf.ByteString value)
Source namespace constraining the applicability of a rule to workloads in that namespace. If the VirtualService has a list of gateways specified in the top-level `gateways` field, it must include the reserved gateway `mesh` for this field to be applicable.
string source_namespace = 6;- 参数:
value- The bytes for sourceNamespace to set.- 返回:
- This builder for chaining.
-
setUnknownFields
public final VirtualServiceOuterClass.L4MatchAttributes.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
setUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
setUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
mergeUnknownFields
public final VirtualServiceOuterClass.L4MatchAttributes.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- 指定者:
mergeUnknownFields在接口中com.google.protobuf.Message.Builder- 覆盖:
mergeUnknownFields在类中com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.L4MatchAttributes.Builder>
-
-