public static final class MethodConfig.Name extends com.google.protobuf.GeneratedMessageV3 implements MethodConfig.NameOrBuilder
The names of the methods to which this configuration applies.
- MethodConfig without names (empty list) will be skipped.
- Each name entry must be unique across the entire ServiceConfig.
- If the 'method' field is empty, this MethodConfig specifies the defaults
for all methods for the specified service.
- If the 'service' field is empty, the 'method' field must be empty, and
this MethodConfig specifies the default for all methods (it's the default
config).
When determining which MethodConfig to use for a given RPC, the most
specific match wins. For example, let's say that the service config
contains the following MethodConfig entries:
method_config { name { } ... }
method_config { name { service: "MyService" } ... }
method_config { name { service: "MyService" method: "Foo" } ... }
MyService/Foo will use the third entry, because it exactly matches the
service and method name. MyService/Bar will use the second entry, because
it provides the default for all methods of MyService. AnotherService/Baz
will use the first entry, because it doesn't match the other two.
In JSON representation, value "", value `null`, and not present are the
same. The following are the same Name:
- { "service": "s" }
- { "service": "s", "method": null }
- { "service": "s", "method": "" }
Protobuf type grpc.service_config.MethodConfig.Name| Modifier and Type | Class and Description |
|---|---|
static class |
MethodConfig.Name.Builder
The names of the methods to which this configuration applies.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
METHOD_FIELD_NUMBER |
static int |
SERVICE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static MethodConfig.Name |
getDefaultInstance() |
MethodConfig.Name |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getMethod()
string method = 2; |
com.google.protobuf.ByteString |
getMethodBytes()
string method = 2; |
com.google.protobuf.Parser<MethodConfig.Name> |
getParserForType() |
int |
getSerializedSize() |
String |
getService()
Required.
|
com.google.protobuf.ByteString |
getServiceBytes()
Required.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static MethodConfig.Name.Builder |
newBuilder() |
static MethodConfig.Name.Builder |
newBuilder(MethodConfig.Name prototype) |
MethodConfig.Name.Builder |
newBuilderForType() |
protected MethodConfig.Name.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static MethodConfig.Name |
parseDelimitedFrom(InputStream input) |
static MethodConfig.Name |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.Name |
parseFrom(byte[] data) |
static MethodConfig.Name |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.Name |
parseFrom(ByteBuffer data) |
static MethodConfig.Name |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.Name |
parseFrom(com.google.protobuf.ByteString data) |
static MethodConfig.Name |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.Name |
parseFrom(com.google.protobuf.CodedInputStream input) |
static MethodConfig.Name |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static MethodConfig.Name |
parseFrom(InputStream input) |
static MethodConfig.Name |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MethodConfig.Name> |
parser() |
MethodConfig.Name.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, internalGetMapField, 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, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int SERVICE_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getService()
Required. Includes proto package name.
string service = 1;getService in interface MethodConfig.NameOrBuilderpublic com.google.protobuf.ByteString getServiceBytes()
Required. Includes proto package name.
string service = 1;getServiceBytes in interface MethodConfig.NameOrBuilderpublic String getMethod()
string method = 2;getMethod in interface MethodConfig.NameOrBuilderpublic com.google.protobuf.ByteString getMethodBytes()
string method = 2;getMethodBytes in interface MethodConfig.NameOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MethodConfig.Name parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.Name parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.Name parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.Name parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.Name parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.Name parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MethodConfig.Name parseFrom(InputStream input) throws IOException
IOExceptionpublic static MethodConfig.Name parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MethodConfig.Name parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static MethodConfig.Name parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static MethodConfig.Name parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static MethodConfig.Name parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic MethodConfig.Name.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MethodConfig.Name.Builder newBuilder()
public static MethodConfig.Name.Builder newBuilder(MethodConfig.Name prototype)
public MethodConfig.Name.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MethodConfig.Name.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MethodConfig.Name getDefaultInstance()
public static com.google.protobuf.Parser<MethodConfig.Name> parser()
public com.google.protobuf.Parser<MethodConfig.Name> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MethodConfig.Name getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.