Class GetTemplateRequest.Builder (0.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetTemplateRequest build()
Returns
TypeDescription
GetTemplateRequest

buildPartial()

public GetTemplateRequest buildPartial()
Returns
TypeDescription
GetTemplateRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearLocation()

public GetTemplateRequest.Builder clearLocation()

The regional endpoint to which to direct the request.

string location = 4;

Returns
TypeDescription
GetTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clearTemplate()

public GetTemplateRequest.Builder clearTemplate()
Returns
TypeDescription
GetTemplateRequest.Builder

clearView()

public GetTemplateRequest.Builder clearView()

The view to retrieve. Defaults to METADATA_ONLY.

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

Returns
TypeDescription
GetTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
GetTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for gcsPath.

getLocation()

public String getLocation()

The regional endpoint to which to direct the request.

string location = 4;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The regional endpoint to which to direct the request.

string location = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for projectId.

getTemplateCase()

public GetTemplateRequest.TemplateCase getTemplateCase()
Returns
TypeDescription
GetTemplateRequest.TemplateCase

getView()

public GetTemplateRequest.TemplateView getView()

The view to retrieve. Defaults to METADATA_ONLY.

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

Returns
TypeDescription
GetTemplateRequest.TemplateView

The view.

getViewValue()

public int getViewValue()

The view to retrieve. Defaults to METADATA_ONLY.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the gcsPath field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetTemplateRequest other)

public GetTemplateRequest.Builder mergeFrom(GetTemplateRequest other)
Parameter
NameDescription
otherGetTemplateRequest
Returns
TypeDescription
GetTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The gcsPath to set.

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

The bytes for gcsPath to set.

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

The location to set.

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

The bytes for location to set.

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

The projectId to set.

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

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetTemplateRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GetTemplateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueGetTemplateRequest.TemplateView

The view to set.

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

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

Returns
TypeDescription
GetTemplateRequest.Builder

This builder for chaining.