类 SidecarOuterClass.WorkloadSelector.Builder

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

    public static final class SidecarOuterClass.WorkloadSelector.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SidecarOuterClass.WorkloadSelector.Builder>
    implements SidecarOuterClass.WorkloadSelectorOrBuilder
     `WorkloadSelector` specifies the criteria used to determine if the
     `Gateway`, `Sidecar`, or `EnvoyFilter` or `ServiceEntry`
     configuration can be applied to a proxy. The matching criteria
     includes the metadata associated with a proxy, workload instance
     info such as labels attached to the pod/VM, or any other info that
     the proxy provides to Istio during the initial handshake. If
     multiple conditions are specified, all conditions need to match in
     order for the workload instance to be selected. Currently, only
     label based selection mechanism is supported.
     
    Protobuf type istio.networking.v1alpha3.WorkloadSelector
    • 字段详细资料

      • bitField0_

        private int bitField0_
      • labels_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> labels_
    • 构造器详细资料

      • 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<SidecarOuterClass.WorkloadSelector.Builder>
      • internalGetMutableMapField

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

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

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

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

        public SidecarOuterClass.WorkloadSelector 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<SidecarOuterClass.WorkloadSelector.Builder>
      • mergeFrom

        public SidecarOuterClass.WorkloadSelector.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<SidecarOuterClass.WorkloadSelector.Builder>
        抛出:
        java.io.IOException
      • internalGetLabels

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

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

        public boolean containsLabels​(java.lang.String key)
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        containsLabels 在接口中 SidecarOuterClass.WorkloadSelectorOrBuilder
      • getLabelsMap

        public java.util.Map<java.lang.String,​java.lang.String> getLabelsMap()
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getLabelsMap 在接口中 SidecarOuterClass.WorkloadSelectorOrBuilder
      • getLabelsOrDefault

        public java.lang.String getLabelsOrDefault​(java.lang.String key,
                                                   java.lang.String defaultValue)
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getLabelsOrDefault 在接口中 SidecarOuterClass.WorkloadSelectorOrBuilder
      • getLabelsOrThrow

        public java.lang.String getLabelsOrThrow​(java.lang.String key)
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getLabelsOrThrow 在接口中 SidecarOuterClass.WorkloadSelectorOrBuilder
      • removeLabels

        public SidecarOuterClass.WorkloadSelector.Builder removeLabels​(java.lang.String key)
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];
      • getMutableLabels

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

        public SidecarOuterClass.WorkloadSelector.Builder putLabels​(java.lang.String key,
                                                                    java.lang.String value)
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];
      • putAllLabels

        public SidecarOuterClass.WorkloadSelector.Builder putAllLabels​(java.util.Map<java.lang.String,​java.lang.String> values)
         One or more labels that indicate a specific set of pods/VMs
         on which the configuration should be applied. The scope of
         label search is restricted to the configuration namespace in which the
         the resource is present.
         
        map<string, string> labels = 1 [(.google.api.field_behavior) = REQUIRED];