Class Routine.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Routine.Builder>
com.google.cloud.bigquery.analyticshub.v1.Routine.Builder
All Implemented Interfaces:
RoutineOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Routine

public static final class Routine.Builder extends com.google.protobuf.GeneratedMessage.Builder<Routine.Builder> implements RoutineOrBuilder
 Represents a bigquery routine.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.Routine
  • 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<Routine.Builder>
    • clear

      public Routine.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<Routine.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<Routine.Builder>
    • getDefaultInstanceForType

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

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

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

      public Routine.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<Routine.Builder>
    • mergeFrom

      public Routine.Builder mergeFrom(Routine other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Routine.Builder>
    • mergeFrom

      public Routine.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<Routine.Builder>
      Throws:
      IOException
    • getRoutineTypeValue

      public int getRoutineTypeValue()
       Required. The type of routine.
       
      .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRoutineTypeValue in interface RoutineOrBuilder
      Returns:
      The enum numeric value on the wire for routineType.
    • setRoutineTypeValue

      public Routine.Builder setRoutineTypeValue(int value)
       Required. The type of routine.
       
      .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for routineType to set.
      Returns:
      This builder for chaining.
    • getRoutineType

      public Routine.RoutineType getRoutineType()
       Required. The type of routine.
       
      .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRoutineType in interface RoutineOrBuilder
      Returns:
      The routineType.
    • setRoutineType

      public Routine.Builder setRoutineType(Routine.RoutineType value)
       Required. The type of routine.
       
      .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The routineType to set.
      Returns:
      This builder for chaining.
    • clearRoutineType

      public Routine.Builder clearRoutineType()
       Required. The type of routine.
       
      .google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getDefinitionBody

      public String getDefinitionBody()
       Optional. The definition body of the routine.
       
      string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefinitionBody in interface RoutineOrBuilder
      Returns:
      The definitionBody.
    • getDefinitionBodyBytes

      public com.google.protobuf.ByteString getDefinitionBodyBytes()
       Optional. The definition body of the routine.
       
      string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDefinitionBodyBytes in interface RoutineOrBuilder
      Returns:
      The bytes for definitionBody.
    • setDefinitionBody

      public Routine.Builder setDefinitionBody(String value)
       Optional. The definition body of the routine.
       
      string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The definitionBody to set.
      Returns:
      This builder for chaining.
    • clearDefinitionBody

      public Routine.Builder clearDefinitionBody()
       Optional. The definition body of the routine.
       
      string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDefinitionBodyBytes

      public Routine.Builder setDefinitionBodyBytes(com.google.protobuf.ByteString value)
       Optional. The definition body of the routine.
       
      string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for definitionBody to set.
      Returns:
      This builder for chaining.