类 VirtualServiceOuterClass.L4MatchAttributes.Builder

    • 字段详细资料

      • 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_
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • 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>
      • 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
      • buildPartial

        public VirtualServiceOuterClass.L4MatchAttributes buildPartial()
        指定者:
        buildPartial 在接口中 com.google.protobuf.Message.Builder
        指定者:
        buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
      • 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.
      • 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.
      • 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()
      • 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;
        指定者:
        containsSourceLabels 在接口中 VirtualServiceOuterClass.L4MatchAttributesOrBuilder
      • 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;
        指定者:
        getSourceLabelsMap 在接口中 VirtualServiceOuterClass.L4MatchAttributesOrBuilder
      • 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;
        指定者:
        getSourceLabelsOrDefault 在接口中 VirtualServiceOuterClass.L4MatchAttributesOrBuilder
      • 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;
        指定者:
        getSourceLabelsOrThrow 在接口中 VirtualServiceOuterClass.L4MatchAttributesOrBuilder
      • 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.