Class GrpcRoute.MethodMatch.Builder (0.4.0)

public static final class GrpcRoute.MethodMatch.Builder extends GeneratedMessageV3.Builder<GrpcRoute.MethodMatch.Builder> implements GrpcRoute.MethodMatchOrBuilder

Specifies a match against a method.

Protobuf type google.cloud.networkservices.v1.GrpcRoute.MethodMatch

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GrpcRoute.MethodMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

build()

public GrpcRoute.MethodMatch build()
Returns
Type Description
GrpcRoute.MethodMatch

buildPartial()

public GrpcRoute.MethodMatch buildPartial()
Returns
Type Description
GrpcRoute.MethodMatch

clear()

public GrpcRoute.MethodMatch.Builder clear()
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

clearCaseSensitive()

public GrpcRoute.MethodMatch.Builder clearCaseSensitive()

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

optional bool case_sensitive = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GrpcRoute.MethodMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

clearGrpcMethod()

public GrpcRoute.MethodMatch.Builder clearGrpcMethod()

Required. Name of the method to match against. If unspecified, will match all methods.

string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

clearGrpcService()

public GrpcRoute.MethodMatch.Builder clearGrpcService()

Required. Name of the service to match against. If unspecified, will match all services.

string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GrpcRoute.MethodMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

clearType()

public GrpcRoute.MethodMatch.Builder clearType()

Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

clone()

public GrpcRoute.MethodMatch.Builder clone()
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

getCaseSensitive()

public boolean getCaseSensitive()

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

optional bool case_sensitive = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The caseSensitive.

getDefaultInstanceForType()

public GrpcRoute.MethodMatch getDefaultInstanceForType()
Returns
Type Description
GrpcRoute.MethodMatch

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGrpcMethod()

public String getGrpcMethod()

Required. Name of the method to match against. If unspecified, will match all methods.

string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The grpcMethod.

getGrpcMethodBytes()

public ByteString getGrpcMethodBytes()

Required. Name of the method to match against. If unspecified, will match all methods.

string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for grpcMethod.

getGrpcService()

public String getGrpcService()

Required. Name of the service to match against. If unspecified, will match all services.

string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The grpcService.

getGrpcServiceBytes()

public ByteString getGrpcServiceBytes()

Required. Name of the service to match against. If unspecified, will match all services.

string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for grpcService.

getType()

public GrpcRoute.MethodMatch.Type getType()

Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GrpcRoute.MethodMatch.Type

The type.

getTypeValue()

public int getTypeValue()

Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCaseSensitive()

public boolean hasCaseSensitive()

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

optional bool case_sensitive = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the caseSensitive field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GrpcRoute.MethodMatch other)

public GrpcRoute.MethodMatch.Builder mergeFrom(GrpcRoute.MethodMatch other)
Parameter
Name Description
other GrpcRoute.MethodMatch
Returns
Type Description
GrpcRoute.MethodMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GrpcRoute.MethodMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GrpcRoute.MethodMatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GrpcRoute.MethodMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

setCaseSensitive(boolean value)

public GrpcRoute.MethodMatch.Builder setCaseSensitive(boolean value)

Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

optional bool case_sensitive = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The caseSensitive to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GrpcRoute.MethodMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

setGrpcMethod(String value)

public GrpcRoute.MethodMatch.Builder setGrpcMethod(String value)

Required. Name of the method to match against. If unspecified, will match all methods.

string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The grpcMethod to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setGrpcMethodBytes(ByteString value)

public GrpcRoute.MethodMatch.Builder setGrpcMethodBytes(ByteString value)

Required. Name of the method to match against. If unspecified, will match all methods.

string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for grpcMethod to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setGrpcService(String value)

public GrpcRoute.MethodMatch.Builder setGrpcService(String value)

Required. Name of the service to match against. If unspecified, will match all services.

string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The grpcService to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setGrpcServiceBytes(ByteString value)

public GrpcRoute.MethodMatch.Builder setGrpcServiceBytes(ByteString value)

Required. Name of the service to match against. If unspecified, will match all services.

string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for grpcService to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GrpcRoute.MethodMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides

setType(GrpcRoute.MethodMatch.Type value)

public GrpcRoute.MethodMatch.Builder setType(GrpcRoute.MethodMatch.Type value)

Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GrpcRoute.MethodMatch.Type

The type to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setTypeValue(int value)

public GrpcRoute.MethodMatch.Builder setTypeValue(int value)

Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
GrpcRoute.MethodMatch.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GrpcRoute.MethodMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GrpcRoute.MethodMatch.Builder
Overrides