接口 VirtualServiceOuterClass.L4MatchAttributesOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
VirtualServiceOuterClass.L4MatchAttributes,VirtualServiceOuterClass.L4MatchAttributes.Builder
public static interface VirtualServiceOuterClass.L4MatchAttributesOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 booleancontainsSourceLabels(java.lang.String key)One or more labels that constrain the applicability of a rule to workloads with the given labels.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.java.util.List<java.lang.String>getDestinationSubnetsList()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.java.util.List<java.lang.String>getGatewaysList()Names of gateways where the rule should be applied.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.
-
-
-
方法详细资料
-
getDestinationSubnetsList
java.util.List<java.lang.String> 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;- 返回:
- A list containing the destinationSubnets.
-
getDestinationSubnetsCount
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;- 返回:
- The count of destinationSubnets.
-
getDestinationSubnets
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;- 参数:
index- The index of the element to return.- 返回:
- The destinationSubnets at the given index.
-
getDestinationSubnetsBytes
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;- 参数:
index- The index of the value to return.- 返回:
- The bytes of the destinationSubnets at the given index.
-
getPort
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;- 返回:
- The port.
-
getSourceSubnet
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;- 返回:
- The sourceSubnet.
-
getSourceSubnetBytes
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;- 返回:
- The bytes for sourceSubnet.
-
getSourceLabelsCount
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
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 java.util.Map<java.lang.String,java.lang.String> getSourceLabels()
已过时。UsegetSourceLabelsMap()instead.
-
getSourceLabelsMap
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
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
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;
-
getGatewaysList
java.util.List<java.lang.String> 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;- 返回:
- A list containing the gateways.
-
getGatewaysCount
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;- 返回:
- The count of gateways.
-
getGateways
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;- 参数:
index- The index of the element to return.- 返回:
- The gateways at the given index.
-
getGatewaysBytes
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;- 参数:
index- The index of the value to return.- 返回:
- The bytes of the gateways at the given index.
-
getSourceNamespace
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;- 返回:
- The sourceNamespace.
-
getSourceNamespaceBytes
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;- 返回:
- The bytes for sourceNamespace.
-
-