Class RoutineSpec.Builder (1.21.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datacatalog.v1.RoutineSpec.Argument>
Returns
TypeDescription
RoutineSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RoutineSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRoutineSpec.Argument
Returns
TypeDescription
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
NameDescription
builderForValueRoutineSpec.Argument.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueRoutineSpec.Argument
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRoutineSpec.Argument.Builder
Returns
TypeDescription
RoutineSpec.Builder

addRoutineArgumentsBuilder()

public RoutineSpec.Argument.Builder addRoutineArgumentsBuilder()

Arguments of the routine.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RoutineSpec.Argument.Builder

build()

public RoutineSpec build()
Returns
TypeDescription
RoutineSpec

buildPartial()

public RoutineSpec buildPartial()
Returns
TypeDescription
RoutineSpec

clear()

public RoutineSpec.Builder clear()
Returns
TypeDescription
RoutineSpec.Builder
Overrides

clearBigqueryRoutineSpec()

public RoutineSpec.Builder clearBigqueryRoutineSpec()

Fields specific for BigQuery routines.

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

Returns
TypeDescription
RoutineSpec.Builder

clearDefinitionBody()

public RoutineSpec.Builder clearDefinitionBody()

The body of the routine.

string definition_body = 5;

Returns
TypeDescription
RoutineSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RoutineSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RoutineSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RoutineSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
RoutineSpec.Builder

clearRoutineType()

public RoutineSpec.Builder clearRoutineType()

The type of the routine.

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

Returns
TypeDescription
RoutineSpec.Builder

This builder for chaining.

clearSystemSpec()

public RoutineSpec.Builder clearSystemSpec()
Returns
TypeDescription
RoutineSpec.Builder

clone()

public RoutineSpec.Builder clone()
Returns
TypeDescription
RoutineSpec.Builder
Overrides

getBigqueryRoutineSpec()

public BigQueryRoutineSpec getBigqueryRoutineSpec()

Fields specific for BigQuery routines.

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

Returns
TypeDescription
BigQueryRoutineSpec

The bigqueryRoutineSpec.

getBigqueryRoutineSpecBuilder()

public BigQueryRoutineSpec.Builder getBigqueryRoutineSpecBuilder()

Fields specific for BigQuery routines.

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

Returns
TypeDescription
BigQueryRoutineSpec.Builder

getBigqueryRoutineSpecOrBuilder()

public BigQueryRoutineSpecOrBuilder getBigqueryRoutineSpecOrBuilder()

Fields specific for BigQuery routines.

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

Returns
TypeDescription
BigQueryRoutineSpecOrBuilder

getDefaultInstanceForType()

public RoutineSpec getDefaultInstanceForType()
Returns
TypeDescription
RoutineSpec

getDefinitionBody()

public String getDefinitionBody()

The body of the routine.

string definition_body = 5;

Returns
TypeDescription
String

The definitionBody.

getDefinitionBodyBytes()

public ByteString getDefinitionBodyBytes()

The body of the routine.

string definition_body = 5;

Returns
TypeDescription
ByteString

The bytes for definitionBody.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getRoutineArgumentsCount()

public int getRoutineArgumentsCount()

Arguments of the routine.

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

Returns
TypeDescription
int

getRoutineArgumentsList()

public List<RoutineSpec.Argument> getRoutineArgumentsList()

Arguments of the routine.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
RoutineSpec.ArgumentOrBuilder

getRoutineArgumentsOrBuilderList()

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

Arguments of the routine.

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

Returns
TypeDescription
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
TypeDescription
RoutineSpec.RoutineType

The routineType.

getRoutineTypeValue()

public int getRoutineTypeValue()

The type of the routine.

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

Returns
TypeDescription
int

The enum numeric value on the wire for routineType.

getSystemSpecCase()

public RoutineSpec.SystemSpecCase getSystemSpecCase()
Returns
TypeDescription
RoutineSpec.SystemSpecCase

hasBigqueryRoutineSpec()

public boolean hasBigqueryRoutineSpec()

Fields specific for BigQuery routines.

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

Returns
TypeDescription
boolean

Whether the bigqueryRoutineSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBigQueryRoutineSpec
Returns
TypeDescription
RoutineSpec.Builder

mergeFrom(RoutineSpec other)

public RoutineSpec.Builder mergeFrom(RoutineSpec other)
Parameter
NameDescription
otherRoutineSpec
Returns
TypeDescription
RoutineSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RoutineSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RoutineSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RoutineSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RoutineSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RoutineSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueBigQueryRoutineSpec
Returns
TypeDescription
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
NameDescription
builderForValueBigQueryRoutineSpec.Builder
Returns
TypeDescription
RoutineSpec.Builder

setDefinitionBody(String value)

public RoutineSpec.Builder setDefinitionBody(String value)

The body of the routine.

string definition_body = 5;

Parameter
NameDescription
valueString

The definitionBody to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for definitionBody to set.

Returns
TypeDescription
RoutineSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public RoutineSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The language to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for language to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The returnType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for returnType to set.

Returns
TypeDescription
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
NameDescription
indexint
valueRoutineSpec.Argument
Returns
TypeDescription
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
NameDescription
indexint
builderForValueRoutineSpec.Argument.Builder
Returns
TypeDescription
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
NameDescription
valueRoutineSpec.RoutineType

The routineType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
RoutineSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RoutineSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RoutineSpec.Builder
Overrides