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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GrpcRoute.MethodMatch.Builder>
    • getDefaultInstanceForType

      public GrpcRoute.MethodMatch getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public GrpcRoute.MethodMatch build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public GrpcRoute.MethodMatch buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public GrpcRoute.MethodMatch.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GrpcRoute.MethodMatch.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getTypeValue in interface GrpcRoute.MethodMatchOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      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];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getType in interface GrpcRoute.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

      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:
      This builder for chaining.
    • 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];
      Specified by:
      getGrpcService in interface GrpcRoute.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:
      getGrpcServiceBytes in interface GrpcRoute.MethodMatchOrBuilder
      Returns:
      The bytes for grpcService.
    • setGrpcService

      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];
      Parameters:
      value - The grpcService to set.
      Returns:
      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:
      This builder for chaining.
    • setGrpcServiceBytes

      public GrpcRoute.MethodMatch.Builder setGrpcServiceBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for grpcService to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getGrpcMethod in interface GrpcRoute.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:
      getGrpcMethodBytes in interface GrpcRoute.MethodMatchOrBuilder
      Returns:
      The bytes for grpcMethod.
    • setGrpcMethod

      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];
      Parameters:
      value - The grpcMethod to set.
      Returns:
      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:
      This builder for chaining.
    • setGrpcMethodBytes

      public GrpcRoute.MethodMatch.Builder setGrpcMethodBytes(com.google.protobuf.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];
      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:
      hasCaseSensitive in interface GrpcRoute.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:
      getCaseSensitive in interface GrpcRoute.MethodMatchOrBuilder
      Returns:
      The caseSensitive.
    • setCaseSensitive

      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];
      Parameters:
      value - The caseSensitive to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.