Class RoutineSpec.Builder (1.51.0)

public static final class RoutineSpec.Builder extends GeneratedMessageV3.Builder<RoutineSpec.Builder> implements RoutineSpecOrBuilder

Specification that applies to a routine. Valid only for entries with the ROUTINE type.

Protobuf type google.cloud.datacatalog.v1.RoutineSpec

Static Methods

getDescriptor()

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

Methods

addAllRoutineArguments(Iterable<? extends RoutineSpec.Argument> values)

public RoutineSpec.Builder addAllRoutineArguments(Iterable<? extends RoutineSpec.Argument> values)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datacatalog.v1.RoutineSpec.Argument>
Returns
Type Description
RoutineSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RoutineSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RoutineSpec.Builder
Overrides

addRoutineArguments(RoutineSpec.Argument value)

public RoutineSpec.Builder addRoutineArguments(RoutineSpec.Argument value)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
value RoutineSpec.Argument
Returns
Type Description
RoutineSpec.Builder

addRoutineArguments(RoutineSpec.Argument.Builder builderForValue)

public RoutineSpec.Builder addRoutineArguments(RoutineSpec.Argument.Builder builderForValue)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
builderForValue RoutineSpec.Argument.Builder
Returns
Type Description
RoutineSpec.Builder

addRoutineArguments(int index, RoutineSpec.Argument value)

public RoutineSpec.Builder addRoutineArguments(int index, RoutineSpec.Argument value)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameters
Name Description
index int
value RoutineSpec.Argument
Returns
Type Description
RoutineSpec.Builder

addRoutineArguments(int index, RoutineSpec.Argument.Builder builderForValue)

public RoutineSpec.Builder addRoutineArguments(int index, RoutineSpec.Argument.Builder builderForValue)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameters
Name Description
index int
builderForValue RoutineSpec.Argument.Builder
Returns
Type Description
RoutineSpec.Builder

addRoutineArgumentsBuilder()

public RoutineSpec.Argument.Builder addRoutineArgumentsBuilder()

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Returns
Type Description
RoutineSpec.Argument.Builder

addRoutineArgumentsBuilder(int index)

public RoutineSpec.Argument.Builder addRoutineArgumentsBuilder(int index)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
index int
Returns
Type Description
RoutineSpec.Argument.Builder

build()

public RoutineSpec build()
Returns
Type Description
RoutineSpec

buildPartial()

public RoutineSpec buildPartial()
Returns
Type Description
RoutineSpec

clear()

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

clearBigqueryRoutineSpec()

public RoutineSpec.Builder clearBigqueryRoutineSpec()

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Returns
Type Description
RoutineSpec.Builder

clearDefinitionBody()

public RoutineSpec.Builder clearDefinitionBody()

The body of the routine.

string definition_body = 5;

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RoutineSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RoutineSpec.Builder
Overrides

clearLanguage()

public RoutineSpec.Builder clearLanguage()

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT

string language = 2;

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RoutineSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RoutineSpec.Builder
Overrides

clearReturnType()

public RoutineSpec.Builder clearReturnType()

Return type of the argument. The exact value depends on the source system and the language.

string return_type = 4;

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

clearRoutineArguments()

public RoutineSpec.Builder clearRoutineArguments()

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Returns
Type Description
RoutineSpec.Builder

clearRoutineType()

public RoutineSpec.Builder clearRoutineType()

The type of the routine.

.google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

clearSystemSpec()

public RoutineSpec.Builder clearSystemSpec()
Returns
Type Description
RoutineSpec.Builder

clone()

public RoutineSpec.Builder clone()
Returns
Type Description
RoutineSpec.Builder
Overrides

getBigqueryRoutineSpec()

public BigQueryRoutineSpec getBigqueryRoutineSpec()

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Returns
Type Description
BigQueryRoutineSpec

The bigqueryRoutineSpec.

getBigqueryRoutineSpecBuilder()

public BigQueryRoutineSpec.Builder getBigqueryRoutineSpecBuilder()

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Returns
Type Description
BigQueryRoutineSpec.Builder

getBigqueryRoutineSpecOrBuilder()

public BigQueryRoutineSpecOrBuilder getBigqueryRoutineSpecOrBuilder()

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Returns
Type Description
BigQueryRoutineSpecOrBuilder

getDefaultInstanceForType()

public RoutineSpec getDefaultInstanceForType()
Returns
Type Description
RoutineSpec

getDefinitionBody()

public String getDefinitionBody()

The body of the routine.

string definition_body = 5;

Returns
Type Description
String

The definitionBody.

getDefinitionBodyBytes()

public ByteString getDefinitionBodyBytes()

The body of the routine.

string definition_body = 5;

Returns
Type Description
ByteString

The bytes for definitionBody.

getDescriptorForType()

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

getLanguage()

public String getLanguage()

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT

string language = 2;

Returns
Type Description
String

The language.

getLanguageBytes()

public ByteString getLanguageBytes()

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT

string language = 2;

Returns
Type Description
ByteString

The bytes for language.

getReturnType()

public String getReturnType()

Return type of the argument. The exact value depends on the source system and the language.

string return_type = 4;

Returns
Type Description
String

The returnType.

getReturnTypeBytes()

public ByteString getReturnTypeBytes()

Return type of the argument. The exact value depends on the source system and the language.

string return_type = 4;

Returns
Type Description
ByteString

The bytes for returnType.

getRoutineArguments(int index)

public RoutineSpec.Argument getRoutineArguments(int index)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
index int
Returns
Type Description
RoutineSpec.Argument

getRoutineArgumentsBuilder(int index)

public RoutineSpec.Argument.Builder getRoutineArgumentsBuilder(int index)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
index int
Returns
Type Description
RoutineSpec.Argument.Builder

getRoutineArgumentsBuilderList()

public List<RoutineSpec.Argument.Builder> getRoutineArgumentsBuilderList()

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Returns
Type Description
List<Builder>

getRoutineArgumentsCount()

public int getRoutineArgumentsCount()

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Returns
Type Description
int

getRoutineArgumentsList()

public List<RoutineSpec.Argument> getRoutineArgumentsList()

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Returns
Type Description
List<Argument>

getRoutineArgumentsOrBuilder(int index)

public RoutineSpec.ArgumentOrBuilder getRoutineArgumentsOrBuilder(int index)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
index int
Returns
Type Description
RoutineSpec.ArgumentOrBuilder

getRoutineArgumentsOrBuilderList()

public List<? extends RoutineSpec.ArgumentOrBuilder> getRoutineArgumentsOrBuilderList()

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Returns
Type Description
List<? extends com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder>

getRoutineType()

public RoutineSpec.RoutineType getRoutineType()

The type of the routine.

.google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;

Returns
Type Description
RoutineSpec.RoutineType

The routineType.

getRoutineTypeValue()

public int getRoutineTypeValue()

The type of the routine.

.google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for routineType.

getSystemSpecCase()

public RoutineSpec.SystemSpecCase getSystemSpecCase()
Returns
Type Description
RoutineSpec.SystemSpecCase

hasBigqueryRoutineSpec()

public boolean hasBigqueryRoutineSpec()

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Returns
Type Description
boolean

Whether the bigqueryRoutineSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigqueryRoutineSpec(BigQueryRoutineSpec value)

public RoutineSpec.Builder mergeBigqueryRoutineSpec(BigQueryRoutineSpec value)

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Parameter
Name Description
value BigQueryRoutineSpec
Returns
Type Description
RoutineSpec.Builder

mergeFrom(RoutineSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RoutineSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RoutineSpec.Builder
Overrides

removeRoutineArguments(int index)

public RoutineSpec.Builder removeRoutineArguments(int index)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameter
Name Description
index int
Returns
Type Description
RoutineSpec.Builder

setBigqueryRoutineSpec(BigQueryRoutineSpec value)

public RoutineSpec.Builder setBigqueryRoutineSpec(BigQueryRoutineSpec value)

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Parameter
Name Description
value BigQueryRoutineSpec
Returns
Type Description
RoutineSpec.Builder

setBigqueryRoutineSpec(BigQueryRoutineSpec.Builder builderForValue)

public RoutineSpec.Builder setBigqueryRoutineSpec(BigQueryRoutineSpec.Builder builderForValue)

Fields specific for BigQuery routines.

.google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6;

Parameter
Name Description
builderForValue BigQueryRoutineSpec.Builder
Returns
Type Description
RoutineSpec.Builder

setDefinitionBody(String value)

public RoutineSpec.Builder setDefinitionBody(String value)

The body of the routine.

string definition_body = 5;

Parameter
Name Description
value String

The definitionBody to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setDefinitionBodyBytes(ByteString value)

public RoutineSpec.Builder setDefinitionBodyBytes(ByteString value)

The body of the routine.

string definition_body = 5;

Parameter
Name Description
value ByteString

The bytes for definitionBody to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RoutineSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RoutineSpec.Builder
Overrides

setLanguage(String value)

public RoutineSpec.Builder setLanguage(String value)

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT

string language = 2;

Parameter
Name Description
value String

The language to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setLanguageBytes(ByteString value)

public RoutineSpec.Builder setLanguageBytes(ByteString value)

The language the routine is written in. The exact value depends on the source system. For BigQuery routines, possible values are:

  • SQL
  • JAVASCRIPT

string language = 2;

Parameter
Name Description
value ByteString

The bytes for language to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RoutineSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RoutineSpec.Builder
Overrides

setReturnType(String value)

public RoutineSpec.Builder setReturnType(String value)

Return type of the argument. The exact value depends on the source system and the language.

string return_type = 4;

Parameter
Name Description
value String

The returnType to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setReturnTypeBytes(ByteString value)

public RoutineSpec.Builder setReturnTypeBytes(ByteString value)

Return type of the argument. The exact value depends on the source system and the language.

string return_type = 4;

Parameter
Name Description
value ByteString

The bytes for returnType to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setRoutineArguments(int index, RoutineSpec.Argument value)

public RoutineSpec.Builder setRoutineArguments(int index, RoutineSpec.Argument value)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameters
Name Description
index int
value RoutineSpec.Argument
Returns
Type Description
RoutineSpec.Builder

setRoutineArguments(int index, RoutineSpec.Argument.Builder builderForValue)

public RoutineSpec.Builder setRoutineArguments(int index, RoutineSpec.Argument.Builder builderForValue)

Arguments of the routine.

repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3;

Parameters
Name Description
index int
builderForValue RoutineSpec.Argument.Builder
Returns
Type Description
RoutineSpec.Builder

setRoutineType(RoutineSpec.RoutineType value)

public RoutineSpec.Builder setRoutineType(RoutineSpec.RoutineType value)

The type of the routine.

.google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;

Parameter
Name Description
value RoutineSpec.RoutineType

The routineType to set.

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setRoutineTypeValue(int value)

public RoutineSpec.Builder setRoutineTypeValue(int value)

The type of the routine.

.google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
RoutineSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RoutineSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RoutineSpec.Builder
Overrides