Class GetTemplateRequest.Builder (0.46.0)

public static final class GetTemplateRequest.Builder extends GeneratedMessageV3.Builder<GetTemplateRequest.Builder> implements GetTemplateRequestOrBuilder

A request to retrieve a Cloud Dataflow job template.

Protobuf type google.dataflow.v1beta3.GetTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetTemplateRequest build()
Returns
Type Description
GetTemplateRequest

buildPartial()

public GetTemplateRequest buildPartial()
Returns
Type Description
GetTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcsPath()

public GetTemplateRequest.Builder clearGcsPath()

Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.

string gcs_path = 2;

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

clearLocation()

public GetTemplateRequest.Builder clearLocation()

The regional endpoint to which to direct the request.

string location = 4;

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public GetTemplateRequest.Builder clearProjectId()

Required. The ID of the Cloud Platform project that the job belongs to.

string project_id = 1;

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

clearTemplate()

public GetTemplateRequest.Builder clearTemplate()
Returns
Type Description
GetTemplateRequest.Builder

clearView()

public GetTemplateRequest.Builder clearView()

The view to retrieve. Defaults to METADATA_ONLY.

.google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetTemplateRequest getDefaultInstanceForType()
Returns
Type Description
GetTemplateRequest

getDescriptorForType()

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

getGcsPath()

public String getGcsPath()

Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.

string gcs_path = 2;

Returns
Type Description
String

The gcsPath.

getGcsPathBytes()

public ByteString getGcsPathBytes()

Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.

string gcs_path = 2;

Returns
Type Description
ByteString

The bytes for gcsPath.

getLocation()

public String getLocation()

The regional endpoint to which to direct the request.

string location = 4;

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The regional endpoint to which to direct the request.

string location = 4;

Returns
Type Description
ByteString

The bytes for location.

getProjectId()

public String getProjectId()

Required. The ID of the Cloud Platform project that the job belongs to.

string project_id = 1;

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The ID of the Cloud Platform project that the job belongs to.

string project_id = 1;

Returns
Type Description
ByteString

The bytes for projectId.

getTemplateCase()

public GetTemplateRequest.TemplateCase getTemplateCase()
Returns
Type Description
GetTemplateRequest.TemplateCase

getView()

public GetTemplateRequest.TemplateView getView()

The view to retrieve. Defaults to METADATA_ONLY.

.google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;

Returns
Type Description
GetTemplateRequest.TemplateView

The view.

getViewValue()

public int getViewValue()

The view to retrieve. Defaults to METADATA_ONLY.

.google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;

Returns
Type Description
int

The enum numeric value on the wire for view.

hasGcsPath()

public boolean hasGcsPath()

Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.

string gcs_path = 2;

Returns
Type Description
boolean

Whether the gcsPath field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetTemplateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsPath(String value)

public GetTemplateRequest.Builder setGcsPath(String value)

Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.

string gcs_path = 2;

Parameter
Name Description
value String

The gcsPath to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

setGcsPathBytes(ByteString value)

public GetTemplateRequest.Builder setGcsPathBytes(ByteString value)

Required. A Cloud Storage path to the template from which to create the job. Must be valid Cloud Storage URL, beginning with 'gs://'.

string gcs_path = 2;

Parameter
Name Description
value ByteString

The bytes for gcsPath to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

setLocation(String value)

public GetTemplateRequest.Builder setLocation(String value)

The regional endpoint to which to direct the request.

string location = 4;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public GetTemplateRequest.Builder setLocationBytes(ByteString value)

The regional endpoint to which to direct the request.

string location = 4;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

setProjectId(String value)

public GetTemplateRequest.Builder setProjectId(String value)

Required. The ID of the Cloud Platform project that the job belongs to.

string project_id = 1;

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public GetTemplateRequest.Builder setProjectIdBytes(ByteString value)

Required. The ID of the Cloud Platform project that the job belongs to.

string project_id = 1;

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setView(GetTemplateRequest.TemplateView value)

public GetTemplateRequest.Builder setView(GetTemplateRequest.TemplateView value)

The view to retrieve. Defaults to METADATA_ONLY.

.google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;

Parameter
Name Description
value GetTemplateRequest.TemplateView

The view to set.

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.

setViewValue(int value)

public GetTemplateRequest.Builder setViewValue(int value)

The view to retrieve. Defaults to METADATA_ONLY.

.google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;

Parameter
Name Description
value int

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

Returns
Type Description
GetTemplateRequest.Builder

This builder for chaining.