Class TemplateMetadata.Builder (0.37.0)

public static final class TemplateMetadata.Builder extends GeneratedMessageV3.Builder<TemplateMetadata.Builder> implements TemplateMetadataOrBuilder

Metadata describing a template.

Protobuf type google.dataflow.v1beta3.TemplateMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllParameters(Iterable<? extends ParameterMetadata> values)

public TemplateMetadata.Builder addAllParameters(Iterable<? extends ParameterMetadata> values)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.dataflow.v1beta3.ParameterMetadata>
Returns
TypeDescription
TemplateMetadata.Builder

addParameters(ParameterMetadata value)

public TemplateMetadata.Builder addParameters(ParameterMetadata value)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
valueParameterMetadata
Returns
TypeDescription
TemplateMetadata.Builder

addParameters(ParameterMetadata.Builder builderForValue)

public TemplateMetadata.Builder addParameters(ParameterMetadata.Builder builderForValue)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
builderForValueParameterMetadata.Builder
Returns
TypeDescription
TemplateMetadata.Builder

addParameters(int index, ParameterMetadata value)

public TemplateMetadata.Builder addParameters(int index, ParameterMetadata value)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameters
NameDescription
indexint
valueParameterMetadata
Returns
TypeDescription
TemplateMetadata.Builder

addParameters(int index, ParameterMetadata.Builder builderForValue)

public TemplateMetadata.Builder addParameters(int index, ParameterMetadata.Builder builderForValue)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameters
NameDescription
indexint
builderForValueParameterMetadata.Builder
Returns
TypeDescription
TemplateMetadata.Builder

addParametersBuilder()

public ParameterMetadata.Builder addParametersBuilder()

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Returns
TypeDescription
ParameterMetadata.Builder

addParametersBuilder(int index)

public ParameterMetadata.Builder addParametersBuilder(int index)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TemplateMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TemplateMetadata.Builder
Overrides

build()

public TemplateMetadata build()
Returns
TypeDescription
TemplateMetadata

buildPartial()

public TemplateMetadata buildPartial()
Returns
TypeDescription
TemplateMetadata

clear()

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

clearDescription()

public TemplateMetadata.Builder clearDescription()

Optional. A description of the template.

string description = 2;

Returns
TypeDescription
TemplateMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TemplateMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TemplateMetadata.Builder
Overrides

clearName()

public TemplateMetadata.Builder clearName()

Required. The name of the template.

string name = 1;

Returns
TypeDescription
TemplateMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TemplateMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TemplateMetadata.Builder
Overrides

clearParameters()

public TemplateMetadata.Builder clearParameters()

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Returns
TypeDescription
TemplateMetadata.Builder

clone()

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

getDefaultInstanceForType()

public TemplateMetadata getDefaultInstanceForType()
Returns
TypeDescription
TemplateMetadata

getDescription()

public String getDescription()

Optional. A description of the template.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A description of the template.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the template.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the template.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParameters(int index)

public ParameterMetadata getParameters(int index)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterMetadata

getParametersBuilder(int index)

public ParameterMetadata.Builder getParametersBuilder(int index)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterMetadata.Builder

getParametersBuilderList()

public List<ParameterMetadata.Builder> getParametersBuilderList()

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Returns
TypeDescription
List<Builder>

getParametersCount()

public int getParametersCount()

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Returns
TypeDescription
int

getParametersList()

public List<ParameterMetadata> getParametersList()

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Returns
TypeDescription
List<ParameterMetadata>

getParametersOrBuilder(int index)

public ParameterMetadataOrBuilder getParametersOrBuilder(int index)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterMetadataOrBuilder

getParametersOrBuilderList()

public List<? extends ParameterMetadataOrBuilder> getParametersOrBuilderList()

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Returns
TypeDescription
List<? extends com.google.dataflow.v1beta3.ParameterMetadataOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TemplateMetadata other)

public TemplateMetadata.Builder mergeFrom(TemplateMetadata other)
Parameter
NameDescription
otherTemplateMetadata
Returns
TypeDescription
TemplateMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TemplateMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TemplateMetadata.Builder
Overrides

removeParameters(int index)

public TemplateMetadata.Builder removeParameters(int index)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
TemplateMetadata.Builder

setDescription(String value)

public TemplateMetadata.Builder setDescription(String value)

Optional. A description of the template.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
TemplateMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public TemplateMetadata.Builder setDescriptionBytes(ByteString value)

Optional. A description of the template.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
TemplateMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TemplateMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TemplateMetadata.Builder
Overrides

setName(String value)

public TemplateMetadata.Builder setName(String value)

Required. The name of the template.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
TemplateMetadata.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TemplateMetadata.Builder setNameBytes(ByteString value)

Required. The name of the template.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
TemplateMetadata.Builder

This builder for chaining.

setParameters(int index, ParameterMetadata value)

public TemplateMetadata.Builder setParameters(int index, ParameterMetadata value)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameters
NameDescription
indexint
valueParameterMetadata
Returns
TypeDescription
TemplateMetadata.Builder

setParameters(int index, ParameterMetadata.Builder builderForValue)

public TemplateMetadata.Builder setParameters(int index, ParameterMetadata.Builder builderForValue)

The parameters for the template.

repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3;

Parameters
NameDescription
indexint
builderForValueParameterMetadata.Builder
Returns
TypeDescription
TemplateMetadata.Builder

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

public TemplateMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TemplateMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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