Class GrpcRoute.MethodMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
com.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Builder
- All Implemented Interfaces:
GrpcRoute.MethodMatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GrpcRoute.MethodMatch
public static final class GrpcRoute.MethodMatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
implements GrpcRoute.MethodMatchOrBuilder
Specifies a match against a method.Protobuf type
google.cloud.networkservices.v1.GrpcRoute.MethodMatch-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Required.Optional.booleanOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.getType()Optional.intOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(GrpcRoute.MethodMatch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCaseSensitive(boolean value) Optional.setGrpcMethod(String value) Required.setGrpcMethodBytes(com.google.protobuf.ByteString value) Required.setGrpcService(String value) Required.setGrpcServiceBytes(com.google.protobuf.ByteString value) Required.Optional.setTypeValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcRoute.MethodMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
-
mergeFrom
public GrpcRoute.MethodMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcRoute.MethodMatch.Builder>- Throws:
IOException
-
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];- Specified by:
getTypeValuein interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
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];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getTypein interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The type.
-
setType
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];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getGrpcService
Required. Name of the service to match against. If unspecified, will match all services.
string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getGrpcServicein interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The grpcService.
-
getGrpcServiceBytes
public com.google.protobuf.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];- Specified by:
getGrpcServiceBytesin interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The bytes for grpcService.
-
setGrpcService
Required. Name of the service to match against. If unspecified, will match all services.
string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The grpcService to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setGrpcServiceBytes
Required. Name of the service to match against. If unspecified, will match all services.
string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for grpcService to set.- Returns:
- This builder for chaining.
-
getGrpcMethod
Required. Name of the method to match against. If unspecified, will match all methods.
string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getGrpcMethodin interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The grpcMethod.
-
getGrpcMethodBytes
public com.google.protobuf.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];- Specified by:
getGrpcMethodBytesin interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The bytes for grpcMethod.
-
setGrpcMethod
Required. Name of the method to match against. If unspecified, will match all methods.
string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The grpcMethod to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setGrpcMethodBytes
Required. Name of the method to match against. If unspecified, will match all methods.
string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for grpcMethod to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCaseSensitivein interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- Whether the caseSensitive field is set.
-
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];- Specified by:
getCaseSensitivein interfaceGrpcRoute.MethodMatchOrBuilder- Returns:
- The caseSensitive.
-
setCaseSensitive
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];- Parameters:
value- The caseSensitive to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-