public static final class MethodConfig.Builder extends GeneratedMessage.Builder<MethodConfig.Builder> implements MethodConfigOrBuilderProtobuf type grpc.gcp.MethodConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > MethodConfig.BuilderImplements
MethodConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllName(Iterable<String> values)
public MethodConfig.Builder addAllName(Iterable<String> values)A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The name to add. |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
This builder for chaining. |
addName(String value)
public MethodConfig.Builder addName(String value)A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to add. |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
This builder for chaining. |
addNameBytes(ByteString value)
public MethodConfig.Builder addNameBytes(ByteString value)A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the name to add. |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
This builder for chaining. |
build()
public MethodConfig build()| Returns | |
|---|---|
| Type | Description |
MethodConfig |
|
buildPartial()
public MethodConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
MethodConfig |
|
clear()
public MethodConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
clearAffinity()
public MethodConfig.Builder clearAffinity()The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
clearName()
public MethodConfig.Builder clearName()A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
This builder for chaining. |
getAffinity()
public AffinityConfig getAffinity()The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Returns | |
|---|---|
| Type | Description |
AffinityConfig |
The affinity. |
getAffinityBuilder()
public AffinityConfig.Builder getAffinityBuilder()The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Returns | |
|---|---|
| Type | Description |
AffinityConfig.Builder |
|
getAffinityOrBuilder()
public AffinityConfigOrBuilder getAffinityOrBuilder()The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Returns | |
|---|---|
| Type | Description |
AffinityConfigOrBuilder |
|
getDefaultInstanceForType()
public MethodConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MethodConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName(int index)
public String getName(int index)A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The name at the given index. |
getNameBytes(int index)
public ByteString getNameBytes(int index)A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the name at the given index. |
getNameCount()
public int getNameCount()A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The count of name. |
getNameList()
public ProtocolStringList getNameList()A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the name. |
hasAffinity()
public boolean hasAffinity()The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the affinity field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAffinity(AffinityConfig value)
public MethodConfig.Builder mergeAffinity(AffinityConfig value)The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Parameter | |
|---|---|
| Name | Description |
value |
AffinityConfig |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
mergeFrom(MethodConfig other)
public MethodConfig.Builder mergeFrom(MethodConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
MethodConfig |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MethodConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public MethodConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
setAffinity(AffinityConfig value)
public MethodConfig.Builder setAffinity(AffinityConfig value)The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Parameter | |
|---|---|
| Name | Description |
value |
AffinityConfig |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
setAffinity(AffinityConfig.Builder builderForValue)
public MethodConfig.Builder setAffinity(AffinityConfig.Builder builderForValue)The channel affinity configurations.
.grpc.gcp.AffinityConfig affinity = 1001;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AffinityConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
|
setName(int index, String value)
public MethodConfig.Builder setName(int index, String value)A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.
repeated string name = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
MethodConfig.Builder |
This builder for chaining. |