public static enum ServiceEntry.Location extends java.lang.Enum<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 |
| 限定符和类型 | 字段和说明 |
|---|---|
private static com.google.protobuf.Internal.EnumLiteMap<ServiceEntry.Location> |
internalValueMap |
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.
|
private int |
value |
private static ServiceEntry.Location[] |
VALUES |
| 限定符和类型 | 方法和说明 |
|---|---|
static 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<ServiceEntry.Location> |
internalGetValueMap() |
static ServiceEntry.Location |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ServiceEntry.Location |
valueOf(int value)
已过时。
Use
forNumber(int) instead. |
static ServiceEntry.Location |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ServiceEntry.Location[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final 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 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 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;private static final com.google.protobuf.Internal.EnumLiteMap<ServiceEntry.Location> internalValueMap
private static final ServiceEntry.Location[] VALUES
private final int value
public static ServiceEntry.Location[] values()
for (ServiceEntry.Location c : ServiceEntry.Location.values()) System.out.println(c);
public static ServiceEntry.Location valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public final int getNumber()
getNumber 在接口中 com.google.protobuf.Internal.EnumLitegetNumber 在接口中 com.google.protobuf.ProtocolMessageEnum@Deprecated public static ServiceEntry.Location valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ServiceEntry.Location forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<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 ServiceEntry.Location valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2020 Alibaba Group. All rights reserved.