类 GatewayOuterClass.Gateway.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GatewayOuterClass.GatewayOrBuilder, java.lang.Cloneable
    封闭类:
    GatewayOuterClass.Gateway

    public static final class GatewayOuterClass.Gateway.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
    implements GatewayOuterClass.GatewayOrBuilder
     Gateway describes a load balancer operating at the edge of the mesh
     receiving incoming or outgoing HTTP/TCP connections.
     <!-- crd generation tags
     +cue-gen:Gateway:groupName:networking.istio.io
     +cue-gen:Gateway:version:v1alpha3
     +cue-gen:Gateway:storageVersion
     +cue-gen:Gateway:annotations:helm.sh/resource-policy=keep
     +cue-gen:Gateway:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio
     +cue-gen:Gateway:subresource:status
     +cue-gen:Gateway:scope:Namespaced
     +cue-gen:Gateway:resource:categories=istio-io,networking-istio-io,shortNames=gw
     +cue-gen:Gateway:preserveUnknownFields:false
     -->
     <!-- go code generation tags
     +kubetype-gen
     +kubetype-gen:groupVersion=networking.istio.io/v1alpha3
     +genclient
     +k8s:deepcopy-gen=true
     -->
     
    Protobuf type istio.networking.v1alpha3.Gateway
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

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

      • 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<GatewayOuterClass.Gateway.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        覆盖:
        internalGetMutableMapField 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.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.Gateway.Builder>
      • getDefaultInstanceForType

        public GatewayOuterClass.Gateway getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
      • build

        public GatewayOuterClass.Gateway build()
        指定者:
        build 在接口中 com.google.protobuf.Message.Builder
        指定者:
        build 在接口中 com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GatewayOuterClass.Gateway buildPartial()
        指定者:
        buildPartial 在接口中 com.google.protobuf.Message.Builder
        指定者:
        buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public GatewayOuterClass.Gateway.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.Gateway.Builder>
      • addRepeatedField

        public GatewayOuterClass.Gateway.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.Gateway.Builder>
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
      • mergeFrom

        public GatewayOuterClass.Gateway.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.Gateway.Builder>
        抛出:
        java.io.IOException
      • ensureServersIsMutable

        private void ensureServersIsMutable()
      • getServersCount

        public int getServersCount()
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getServersCount 在接口中 GatewayOuterClass.GatewayOrBuilder
      • clearServers

        public GatewayOuterClass.Gateway.Builder clearServers()
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
      • removeServers

        public GatewayOuterClass.Gateway.Builder removeServers​(int index)
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
      • getServersBuilder

        public GatewayOuterClass.Server.Builder getServersBuilder​(int index)
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
      • addServersBuilder

        public GatewayOuterClass.Server.Builder addServersBuilder()
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
      • addServersBuilder

        public GatewayOuterClass.Server.Builder addServersBuilder​(int index)
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
      • getServersBuilderList

        public java.util.List<GatewayOuterClass.Server.Builder> getServersBuilderList()
         A list of server specifications.
         
        repeated .istio.networking.v1alpha3.Server servers = 1 [(.google.api.field_behavior) = REQUIRED];
      • internalGetSelector

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetSelector()
      • internalGetMutableSelector

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetMutableSelector()
      • getSelectorCount

        public int getSelectorCount()
        从接口复制的说明: GatewayOuterClass.GatewayOrBuilder
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getSelectorCount 在接口中 GatewayOuterClass.GatewayOrBuilder
      • containsSelector

        public boolean containsSelector​(java.lang.String key)
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        containsSelector 在接口中 GatewayOuterClass.GatewayOrBuilder
      • getSelectorMap

        public java.util.Map<java.lang.String,​java.lang.String> getSelectorMap()
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getSelectorMap 在接口中 GatewayOuterClass.GatewayOrBuilder
      • getSelectorOrDefault

        public java.lang.String getSelectorOrDefault​(java.lang.String key,
                                                     java.lang.String defaultValue)
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getSelectorOrDefault 在接口中 GatewayOuterClass.GatewayOrBuilder
      • getSelectorOrThrow

        public java.lang.String getSelectorOrThrow​(java.lang.String key)
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getSelectorOrThrow 在接口中 GatewayOuterClass.GatewayOrBuilder
      • removeSelector

        public GatewayOuterClass.Gateway.Builder removeSelector​(java.lang.String key)
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
      • getMutableSelector

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableSelector()
        已过时。
        Use alternate mutation accessors instead.
      • putSelector

        public GatewayOuterClass.Gateway.Builder putSelector​(java.lang.String key,
                                                             java.lang.String value)
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
      • putAllSelector

        public GatewayOuterClass.Gateway.Builder putAllSelector​(java.util.Map<java.lang.String,​java.lang.String> values)
         One or more labels that indicate a specific set of pods/VMs
         on which this gateway configuration should be applied.
         By default workloads are searched across all namespaces based on label selectors.
         This implies that a gateway resource in the namespace "foo" can select pods in
         the namespace "bar" based on labels.
         This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE`
         environment variable in istiod. If this variable is set
         to true, the scope of label search is restricted to the configuration
         namespace in which the the resource is present. In other words, the Gateway
         resource must reside in the same namespace as the gateway workload
         instance.
         If selector is nil, the Gateway will be applied to all workloads.
         
        map<string, string> selector = 2 [(.google.api.field_behavior) = REQUIRED];
      • setUnknownFields

        public final GatewayOuterClass.Gateway.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        指定者:
        setUnknownFields 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        setUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>
      • mergeUnknownFields

        public final GatewayOuterClass.Gateway.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        指定者:
        mergeUnknownFields 在接口中 com.google.protobuf.Message.Builder
        覆盖:
        mergeUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.Gateway.Builder>