Class GrpcRoute.MethodMatch.Builder (0.39.0)

public static final class GrpcRoute.MethodMatch.Builder extends GeneratedMessage.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

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.

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.

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.

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 GeneratedMessage.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

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.

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.

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.