public static enum ServiceEntryOuterClass.ServiceEntry.Location extends Enum<ServiceEntryOuterClass.ServiceEntry.Location> implements com.google.protobuf.ProtocolMessageEnum
Location specifies whether the service is part of Istio mesh or outside the mesh. Location determines the behavior of several features, such as service-to-service mTLS authentication, policy enforcement, etc. When communicating with services outside the mesh, Istio's mTLS authentication is disabled, and policy enforcement is performed on the client-side as opposed to server-side.Protobuf enum
istio.networking.v1alpha3.ServiceEntry.Location| 枚举常量和说明 |
|---|
MESH_EXTERNAL
Signifies that the service is external to the mesh.
|
MESH_INTERNAL
Signifies that the service is part of the mesh.
|
UNRECOGNIZED |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
MESH_EXTERNAL_VALUE
Signifies that the service is external to the mesh.
|
static int |
MESH_INTERNAL_VALUE
Signifies that the service is part of the mesh.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ServiceEntryOuterClass.ServiceEntry.Location |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ServiceEntryOuterClass.ServiceEntry.Location> |
internalGetValueMap() |
static ServiceEntryOuterClass.ServiceEntry.Location |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ServiceEntryOuterClass.ServiceEntry.Location |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static ServiceEntryOuterClass.ServiceEntry.Location |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ServiceEntryOuterClass.ServiceEntry.Location[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ServiceEntryOuterClass.ServiceEntry.Location MESH_EXTERNAL
Signifies that the service is external to the mesh. Typically used to indicate external services consumed through APIs.
MESH_EXTERNAL = 0;public static final ServiceEntryOuterClass.ServiceEntry.Location MESH_INTERNAL
Signifies that the service is part of the mesh. Typically used to indicate services added explicitly as part of expanding the service mesh to include unmanaged infrastructure (e.g., VMs added to a Kubernetes based service mesh).
MESH_INTERNAL = 1;public static final ServiceEntryOuterClass.ServiceEntry.Location UNRECOGNIZED
public static final int MESH_EXTERNAL_VALUE
Signifies that the service is external to the mesh. Typically used to indicate external services consumed through APIs.
MESH_EXTERNAL = 0;public static final int MESH_INTERNAL_VALUE
Signifies that the service is part of the mesh. Typically used to indicate services added explicitly as part of expanding the service mesh to include unmanaged infrastructure (e.g., VMs added to a Kubernetes based service mesh).
MESH_INTERNAL = 1;public static ServiceEntryOuterClass.ServiceEntry.Location[] values()
for (ServiceEntryOuterClass.ServiceEntry.Location c : ServiceEntryOuterClass.ServiceEntry.Location.values()) System.out.println(c);
public static ServiceEntryOuterClass.ServiceEntry.Location valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static ServiceEntryOuterClass.ServiceEntry.Location valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ServiceEntryOuterClass.ServiceEntry.Location forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ServiceEntryOuterClass.ServiceEntry.Location> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor 在接口中 com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType 在接口中 com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ServiceEntryOuterClass.ServiceEntry.Location valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2023 Alibaba Group. All rights reserved.