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 type
istio.networking.v1alpha3.WorkloadSelector| 限定符和类型 | 类和说明 |
|---|---|
static class |
SidecarOuterClass.WorkloadSelector.Builder
`WorkloadSelector` specifies the criteria used to determine if the
`Gateway`, `Sidecar`, or `EnvoyFilter` or `ServiceEntry`
configuration can be applied to a proxy.
|
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| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LABELS_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsLabels(String key)
One or more labels that indicate a specific set of pods/VMs
on which the configuration should be applied.
|
boolean |
equals(Object obj) |
static SidecarOuterClass.WorkloadSelector |
getDefaultInstance() |
SidecarOuterClass.WorkloadSelector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getLabels()
已过时。
|
int |
getLabelsCount()
One or more labels that indicate a specific set of pods/VMs
on which the configuration should be applied.
|
Map<String,String> |
getLabelsMap()
One or more labels that indicate a specific set of pods/VMs
on which the configuration should be applied.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
One or more labels that indicate a specific set of pods/VMs
on which the configuration should be applied.
|
String |
getLabelsOrThrow(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() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static SidecarOuterClass.WorkloadSelector.Builder |
newBuilder() |
static SidecarOuterClass.WorkloadSelector.Builder |
newBuilder(SidecarOuterClass.WorkloadSelector prototype) |
SidecarOuterClass.WorkloadSelector.Builder |
newBuilderForType() |
protected SidecarOuterClass.WorkloadSelector.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SidecarOuterClass.WorkloadSelector |
parseDelimitedFrom(InputStream input) |
static SidecarOuterClass.WorkloadSelector |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(byte[] data) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(ByteBuffer data) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(com.google.protobuf.ByteString data) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(InputStream input) |
static SidecarOuterClass.WorkloadSelector |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector> |
parser() |
SidecarOuterClass.WorkloadSelector.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance 在类中 com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField 在类中 com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public 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];public boolean containsLabels(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];@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.public Map<String,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];public String getLabelsOrDefault(String key, 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];public String getLabelsOrThrow(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];public final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static SidecarOuterClass.WorkloadSelector parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(InputStream input) throws IOException
IOExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SidecarOuterClass.WorkloadSelector parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SidecarOuterClass.WorkloadSelector parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SidecarOuterClass.WorkloadSelector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SidecarOuterClass.WorkloadSelector.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static SidecarOuterClass.WorkloadSelector.Builder newBuilder()
public static SidecarOuterClass.WorkloadSelector.Builder newBuilder(SidecarOuterClass.WorkloadSelector prototype)
public SidecarOuterClass.WorkloadSelector.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected SidecarOuterClass.WorkloadSelector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static SidecarOuterClass.WorkloadSelector getDefaultInstance()
public static com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector> parser()
public com.google.protobuf.Parser<SidecarOuterClass.WorkloadSelector> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public SidecarOuterClass.WorkloadSelector getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018–2023 Alibaba Group. All rights reserved.