public static final class RoutingProto.Destination extends com.google.protobuf.GeneratedMessageV3 implements RoutingProto.DestinationOrBuilder
v1.Destination| 限定符和类型 | 类和说明 |
|---|---|
static class |
RoutingProto.Destination.Builder
Protobuf type
v1.Destination |
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| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ISOLATE_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAMESPACE_FIELD_NUMBER |
static int |
PRIORITY_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
static int |
TRANSFER_FIELD_NUMBER |
static int |
WEIGHT_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsMetadata(String key)
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
boolean |
equals(Object obj) |
static RoutingProto.Destination |
getDefaultInstance() |
RoutingProto.Destination |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.BoolValue |
getIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7; |
com.google.protobuf.BoolValueOrBuilder |
getIsolateOrBuilder()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7; |
Map<String,ModelProto.MatchString> |
getMetadata()
已过时。
|
int |
getMetadataCount()
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
Map<String,ModelProto.MatchString> |
getMetadataMap()
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMetadataOrDefault(String key,
ModelProto.MatchString defaultValue)
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
ModelProto.MatchString |
getMetadataOrThrow(String key)
被调方服务实例标签
value支持正则匹配
map<string, .v1.MatchString> metadata = 3; |
com.google.protobuf.StringValue |
getNamespace()
.google.protobuf.StringValue namespace = 2; |
com.google.protobuf.StringValueOrBuilder |
getNamespaceOrBuilder()
.google.protobuf.StringValue namespace = 2; |
com.google.protobuf.Parser<RoutingProto.Destination> |
getParserForType() |
com.google.protobuf.UInt32Value |
getPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集
服务实例子集可以设置优先级和权重
优先级:整型,范围[0, 9],最高优先级为0
权重:整型
先按优先级路由,如果存在高优先级,不会使用低优先级
如果存在优先级相同的子集,再按权重分配
优先级和权重可以都不设置/设置一个/设置两个
如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
如果部分设置权重,部分没有设置,认为没有设置的权重为0
如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4; |
com.google.protobuf.UInt32ValueOrBuilder |
getPriorityOrBuilder()
根据服务名和服务实例metadata筛选符合条件的服务实例子集
服务实例子集可以设置优先级和权重
优先级:整型,范围[0, 9],最高优先级为0
权重:整型
先按优先级路由,如果存在高优先级,不会使用低优先级
如果存在优先级相同的子集,再按权重分配
优先级和权重可以都不设置/设置一个/设置两个
如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
如果部分设置权重,部分没有设置,认为没有设置的权重为0
如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4; |
int |
getSerializedSize() |
com.google.protobuf.StringValue |
getService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1; |
com.google.protobuf.StringValueOrBuilder |
getServiceOrBuilder()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1; |
com.google.protobuf.StringValue |
getTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6; |
com.google.protobuf.StringValueOrBuilder |
getTransferOrBuilder()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
com.google.protobuf.UInt32Value |
getWeight()
.google.protobuf.UInt32Value weight = 5; |
com.google.protobuf.UInt32ValueOrBuilder |
getWeightOrBuilder()
.google.protobuf.UInt32Value weight = 5; |
int |
hashCode() |
boolean |
hasIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7; |
boolean |
hasNamespace()
.google.protobuf.StringValue namespace = 2; |
boolean |
hasPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集
服务实例子集可以设置优先级和权重
优先级:整型,范围[0, 9],最高优先级为0
权重:整型
先按优先级路由,如果存在高优先级,不会使用低优先级
如果存在优先级相同的子集,再按权重分配
优先级和权重可以都不设置/设置一个/设置两个
如果部分设置优先级,部分没有设置,认为没有设置的优先级最低
如果部分设置权重,部分没有设置,认为没有设置的权重为0
如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4; |
boolean |
hasService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1; |
boolean |
hasTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6; |
boolean |
hasWeight()
.google.protobuf.UInt32Value weight = 5; |
boolean |
isInitialized() |
static RoutingProto.Destination.Builder |
newBuilder() |
static RoutingProto.Destination.Builder |
newBuilder(RoutingProto.Destination prototype) |
RoutingProto.Destination.Builder |
newBuilderForType() |
static RoutingProto.Destination |
parseDelimitedFrom(InputStream input) |
static RoutingProto.Destination |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RoutingProto.Destination |
parseFrom(byte[] data) |
static RoutingProto.Destination |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RoutingProto.Destination |
parseFrom(ByteBuffer data) |
static RoutingProto.Destination |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RoutingProto.Destination |
parseFrom(com.google.protobuf.ByteString data) |
static RoutingProto.Destination |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RoutingProto.Destination |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RoutingProto.Destination |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RoutingProto.Destination |
parseFrom(InputStream input) |
static RoutingProto.Destination |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RoutingProto.Destination> |
parser() |
RoutingProto.Destination.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoffindInitializationErrors, getInitializationErrorString, toStringtoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int SERVICE_FIELD_NUMBER
public static final int NAMESPACE_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER
public static final int TRANSFER_FIELD_NUMBER
public static final int ISOLATE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public boolean hasService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1;hasService 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.StringValue getService()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1;getService 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.StringValueOrBuilder getServiceOrBuilder()
被调方服务以及命名空间
.google.protobuf.StringValue service = 1;public boolean hasNamespace()
.google.protobuf.StringValue namespace = 2;hasNamespace 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.StringValue getNamespace()
.google.protobuf.StringValue namespace = 2;getNamespace 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.StringValueOrBuilder getNamespaceOrBuilder()
.google.protobuf.StringValue namespace = 2;public int getMetadataCount()
RoutingProto.DestinationOrBuilder被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;public boolean containsMetadata(String key)
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;@Deprecated public Map<String,ModelProto.MatchString> getMetadata()
getMetadataMap() instead.getMetadata 在接口中 RoutingProto.DestinationOrBuilderpublic Map<String,ModelProto.MatchString> getMetadataMap()
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;public ModelProto.MatchString getMetadataOrDefault(String key, ModelProto.MatchString defaultValue)
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;public ModelProto.MatchString getMetadataOrThrow(String key)
被调方服务实例标签 value支持正则匹配
map<string, .v1.MatchString> metadata = 3;public boolean hasPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集 服务实例子集可以设置优先级和权重 优先级:整型,范围[0, 9],最高优先级为0 权重:整型 先按优先级路由,如果存在高优先级,不会使用低优先级 如果存在优先级相同的子集,再按权重分配 优先级和权重可以都不设置/设置一个/设置两个 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低 如果部分设置权重,部分没有设置,认为没有设置的权重为0 如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4;hasPriority 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.UInt32Value getPriority()
根据服务名和服务实例metadata筛选符合条件的服务实例子集 服务实例子集可以设置优先级和权重 优先级:整型,范围[0, 9],最高优先级为0 权重:整型 先按优先级路由,如果存在高优先级,不会使用低优先级 如果存在优先级相同的子集,再按权重分配 优先级和权重可以都不设置/设置一个/设置两个 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低 如果部分设置权重,部分没有设置,认为没有设置的权重为0 如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4;getPriority 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getPriorityOrBuilder()
根据服务名和服务实例metadata筛选符合条件的服务实例子集 服务实例子集可以设置优先级和权重 优先级:整型,范围[0, 9],最高优先级为0 权重:整型 先按优先级路由,如果存在高优先级,不会使用低优先级 如果存在优先级相同的子集,再按权重分配 优先级和权重可以都不设置/设置一个/设置两个 如果部分设置优先级,部分没有设置,认为没有设置的优先级最低 如果部分设置权重,部分没有设置,认为没有设置的权重为0 如果全部没有设置权重,认为权重相同
.google.protobuf.UInt32Value priority = 4;public boolean hasWeight()
.google.protobuf.UInt32Value weight = 5;hasWeight 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.UInt32Value getWeight()
.google.protobuf.UInt32Value weight = 5;getWeight 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.UInt32ValueOrBuilder getWeightOrBuilder()
.google.protobuf.UInt32Value weight = 5;public boolean hasTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6;hasTransfer 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.StringValue getTransfer()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6;getTransfer 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.StringValueOrBuilder getTransferOrBuilder()
将请求转发到代理服务
.google.protobuf.StringValue transfer = 6;public boolean hasIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7;hasIsolate 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.BoolValue getIsolate()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7;getIsolate 在接口中 RoutingProto.DestinationOrBuilderpublic com.google.protobuf.BoolValueOrBuilder getIsolateOrBuilder()
是否对该set执行隔离,隔离后,不会再分配流量
.google.protobuf.BoolValue isolate = 7;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 RoutingProto.Destination parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RoutingProto.Destination parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RoutingProto.Destination parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RoutingProto.Destination parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RoutingProto.Destination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RoutingProto.Destination parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RoutingProto.Destination parseFrom(InputStream input) throws IOException
IOExceptionpublic static RoutingProto.Destination parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RoutingProto.Destination parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RoutingProto.Destination parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RoutingProto.Destination parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RoutingProto.Destination parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RoutingProto.Destination.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static RoutingProto.Destination.Builder newBuilder()
public static RoutingProto.Destination.Builder newBuilder(RoutingProto.Destination prototype)
public RoutingProto.Destination.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLitepublic static RoutingProto.Destination getDefaultInstance()
public static com.google.protobuf.Parser<RoutingProto.Destination> parser()
public com.google.protobuf.Parser<RoutingProto.Destination> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public RoutingProto.Destination getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2021. All rights reserved.