类 SidecarOuterClass.WorkloadSelector
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- istio.networking.v1alpha3.SidecarOuterClass.WorkloadSelector
-
- 所有已实现的接口:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SidecarOuterClass.WorkloadSelectorOrBuilder,java.io.Serializable
- 封闭类:
- SidecarOuterClass
public static final class SidecarOuterClass.WorkloadSelector extends com.google.protobuf.GeneratedMessageV3 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 typeistio.networking.v1alpha3.WorkloadSelector- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSidecarOuterClass.WorkloadSelector.Builder`WorkloadSelector` specifies the criteria used to determine if the `Gateway`, `Sidecar`, or `EnvoyFilter` or `ServiceEntry` configuration can be applied to a proxy.private static classSidecarOuterClass.WorkloadSelector.LabelsDefaultEntryHolder-
从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
字段概要
字段 修饰符和类型 字段 说明 private static SidecarOuterClass.WorkloadSelectorDEFAULT_INSTANCEprivate com.google.protobuf.MapField<java.lang.String,java.lang.String>labels_static intLABELS_FIELD_NUMBERprivate bytememoizedIsInitializedprivate static com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector>PARSERprivate static longserialVersionUID
-
构造器概要
构造器 限定符 构造器 说明 privateWorkloadSelector()privateWorkloadSelector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)
-
方法概要
所有方法 静态方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 booleancontainsLabels(java.lang.String key)One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.booleanequals(java.lang.Object obj)static SidecarOuterClass.WorkloadSelectorgetDefaultInstance()SidecarOuterClass.WorkloadSelectorgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.util.Map<java.lang.String,java.lang.String>getLabels()已过时。intgetLabelsCount()One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.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.java.lang.StringgetLabelsOrDefault(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.java.lang.StringgetLabelsOrThrow(java.lang.String key)One or more labels that indicate a specific set of pods/VMs on which the configuration should be applied.com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetLabels()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static SidecarOuterClass.WorkloadSelector.BuildernewBuilder()static SidecarOuterClass.WorkloadSelector.BuildernewBuilder(SidecarOuterClass.WorkloadSelector prototype)SidecarOuterClass.WorkloadSelector.BuildernewBuilderForType()protected SidecarOuterClass.WorkloadSelector.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static SidecarOuterClass.WorkloadSelectorparseDelimitedFrom(java.io.InputStream input)static SidecarOuterClass.WorkloadSelectorparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.WorkloadSelectorparseFrom(byte[] data)static SidecarOuterClass.WorkloadSelectorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.WorkloadSelectorparseFrom(com.google.protobuf.ByteString data)static SidecarOuterClass.WorkloadSelectorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.WorkloadSelectorparseFrom(com.google.protobuf.CodedInputStream input)static SidecarOuterClass.WorkloadSelectorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.WorkloadSelectorparseFrom(java.io.InputStream input)static SidecarOuterClass.WorkloadSelectorparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static SidecarOuterClass.WorkloadSelectorparseFrom(java.nio.ByteBuffer data)static SidecarOuterClass.WorkloadSelectorparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector>parser()SidecarOuterClass.WorkloadSelector.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
-
-
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID
- 另请参阅:
- 常量字段值
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
labels_
private com.google.protobuf.MapField<java.lang.String,java.lang.String> labels_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final SidecarOuterClass.WorkloadSelector DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector> PARSER
-
-
方法详细资料
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- 指定者:
getUnknownFields在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getUnknownFields在类中com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- 覆盖:
internalGetMapField在类中com.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- 指定者:
internalGetFieldAccessorTable在类中com.google.protobuf.GeneratedMessageV3
-
internalGetLabels
private com.google.protobuf.MapField<java.lang.String,java.lang.String> internalGetLabels()
-
getLabelsCount
public int getLabelsCount()
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
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];
-
getLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
已过时。UsegetLabelsMap()instead.
-
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];
-
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];
-
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];
-
isInitialized
public final boolean isInitialized()
- 指定者:
isInitialized在接口中com.google.protobuf.MessageLiteOrBuilder- 覆盖:
isInitialized在类中com.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 指定者:
equals在接口中com.google.protobuf.Message- 覆盖:
equals在类中com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- 指定者:
hashCode在接口中com.google.protobuf.Message- 覆盖:
hashCode在类中com.google.protobuf.AbstractMessage
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static SidecarOuterClass.WorkloadSelector parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static SidecarOuterClass.WorkloadSelector parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
newBuilderForType
public SidecarOuterClass.WorkloadSelector.Builder newBuilderForType()
- 指定者:
newBuilderForType在接口中com.google.protobuf.Message- 指定者:
newBuilderForType在接口中com.google.protobuf.MessageLite
-
newBuilder
public static SidecarOuterClass.WorkloadSelector.Builder newBuilder()
-
newBuilder
public static SidecarOuterClass.WorkloadSelector.Builder newBuilder(SidecarOuterClass.WorkloadSelector prototype)
-
toBuilder
public SidecarOuterClass.WorkloadSelector.Builder toBuilder()
- 指定者:
toBuilder在接口中com.google.protobuf.Message- 指定者:
toBuilder在接口中com.google.protobuf.MessageLite
-
newBuilderForType
protected SidecarOuterClass.WorkloadSelector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- 指定者:
newBuilderForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SidecarOuterClass.WorkloadSelector getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector> parser()
-
getParserForType
public com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector> getParserForType()
- 指定者:
getParserForType在接口中com.google.protobuf.Message- 指定者:
getParserForType在接口中com.google.protobuf.MessageLite- 覆盖:
getParserForType在类中com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SidecarOuterClass.WorkloadSelector getDefaultInstanceForType()
- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageLiteOrBuilder- 指定者:
getDefaultInstanceForType在接口中com.google.protobuf.MessageOrBuilder
-
-