Class Routine.Builder (0.80.0)

public static final class Routine.Builder extends GeneratedMessage.Builder<Routine.Builder> implements RoutineOrBuilder

Represents a bigquery routine.

Protobuf type google.cloud.bigquery.analyticshub.v1.Routine

Implements

RoutineOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public Routine build()
Returns
Type Description
Routine

buildPartial()

public Routine buildPartial()
Returns
Type Description
Routine

clear()

public Routine.Builder clear()
Returns
Type Description
Routine.Builder
Overrides

clearDefinitionBody()

public Routine.Builder clearDefinitionBody()

Optional. The definition body of the routine.

string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Routine.Builder

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
Type Description
Routine.Builder

This builder for chaining.

getDefaultInstanceForType()

public Routine getDefaultInstanceForType()
Returns
Type Description
Routine

getDefinitionBody()

public String getDefinitionBody()

Optional. The definition body of the routine.

string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The definitionBody.

getDefinitionBodyBytes()

public ByteString getDefinitionBodyBytes()

Optional. The definition body of the routine.

string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for definitionBody.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
Routine.RoutineType

The routineType.

getRoutineTypeValue()

public int getRoutineTypeValue()

Required. The type of routine.

.google.cloud.bigquery.analyticshub.v1.Routine.RoutineType routine_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for routineType.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Routine other)

public Routine.Builder mergeFrom(Routine other)
Parameter
Name Description
other Routine
Returns
Type Description
Routine.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Routine.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Routine.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Routine.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Routine.Builder
Overrides

setDefinitionBody(String value)

public Routine.Builder setDefinitionBody(String value)

Optional. The definition body of the routine.

string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The definitionBody to set.

Returns
Type Description
Routine.Builder

This builder for chaining.

setDefinitionBodyBytes(ByteString value)

public Routine.Builder setDefinitionBodyBytes(ByteString value)

Optional. The definition body of the routine.

string definition_body = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for definitionBody to set.

Returns
Type Description
Routine.Builder

This builder for chaining.

setRoutineType(Routine.RoutineType value)

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];

Parameter
Name Description
value Routine.RoutineType

The routineType to set.

Returns
Type Description
Routine.Builder

This builder for chaining.

setRoutineTypeValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for routineType to set.

Returns
Type Description
Routine.Builder

This builder for chaining.