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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GrpcRoute.MethodMatch.BuilderImplements
GrpcRoute.MethodMatchOrBuilderStatic 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 |
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 |
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 |
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 |
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 |
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 |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GrpcRoute.MethodMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GrpcRoute.MethodMatch.Builder |
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 |
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 |
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 |