Class LaunchTemplateRequest.Builder (0.39.0)

public static final class LaunchTemplateRequest.Builder extends GeneratedMessageV3.Builder<LaunchTemplateRequest.Builder> implements LaunchTemplateRequestOrBuilder

A request to launch a template.

Protobuf type google.dataflow.v1beta3.LaunchTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LaunchTemplateRequest build()
Returns
TypeDescription
LaunchTemplateRequest

buildPartial()

public LaunchTemplateRequest buildPartial()
Returns
TypeDescription
LaunchTemplateRequest

clear()

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

clearDynamicTemplate()

public LaunchTemplateRequest.Builder clearDynamicTemplate()

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Returns
TypeDescription
LaunchTemplateRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsPath()

public LaunchTemplateRequest.Builder clearGcsPath()

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 = 3;

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

clearLaunchParameters()

public LaunchTemplateRequest.Builder clearLaunchParameters()

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Returns
TypeDescription
LaunchTemplateRequest.Builder

clearLocation()

public LaunchTemplateRequest.Builder clearLocation()

The regional endpoint to which to direct the request.

string location = 5;

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public LaunchTemplateRequest.Builder clearProjectId()

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

string project_id = 1;

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

clearTemplate()

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

clearValidateOnly()

public LaunchTemplateRequest.Builder clearValidateOnly()

If true, the request is validated but not actually executed. Defaults to false.

bool validate_only = 2;

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public LaunchTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
LaunchTemplateRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDynamicTemplate()

public DynamicTemplateLaunchParams getDynamicTemplate()

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Returns
TypeDescription
DynamicTemplateLaunchParams

The dynamicTemplate.

getDynamicTemplateBuilder()

public DynamicTemplateLaunchParams.Builder getDynamicTemplateBuilder()

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Returns
TypeDescription
DynamicTemplateLaunchParams.Builder

getDynamicTemplateOrBuilder()

public DynamicTemplateLaunchParamsOrBuilder getDynamicTemplateOrBuilder()

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Returns
TypeDescription
DynamicTemplateLaunchParamsOrBuilder

getGcsPath()

public String getGcsPath()

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 = 3;

Returns
TypeDescription
String

The gcsPath.

getGcsPathBytes()

public ByteString getGcsPathBytes()

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 = 3;

Returns
TypeDescription
ByteString

The bytes for gcsPath.

getLaunchParameters()

public LaunchTemplateParameters getLaunchParameters()

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Returns
TypeDescription
LaunchTemplateParameters

The launchParameters.

getLaunchParametersBuilder()

public LaunchTemplateParameters.Builder getLaunchParametersBuilder()

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Returns
TypeDescription
LaunchTemplateParameters.Builder

getLaunchParametersOrBuilder()

public LaunchTemplateParametersOrBuilder getLaunchParametersOrBuilder()

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Returns
TypeDescription
LaunchTemplateParametersOrBuilder

getLocation()

public String getLocation()

The regional endpoint to which to direct the request.

string location = 5;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

The regional endpoint to which to direct the request.

string location = 5;

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 LaunchTemplateRequest.TemplateCase getTemplateCase()
Returns
TypeDescription
LaunchTemplateRequest.TemplateCase

getValidateOnly()

public boolean getValidateOnly()

If true, the request is validated but not actually executed. Defaults to false.

bool validate_only = 2;

Returns
TypeDescription
boolean

The validateOnly.

hasDynamicTemplate()

public boolean hasDynamicTemplate()

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Returns
TypeDescription
boolean

Whether the dynamicTemplate field is set.

hasGcsPath()

public boolean hasGcsPath()

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 = 3;

Returns
TypeDescription
boolean

Whether the gcsPath field is set.

hasLaunchParameters()

public boolean hasLaunchParameters()

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Returns
TypeDescription
boolean

Whether the launchParameters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDynamicTemplate(DynamicTemplateLaunchParams value)

public LaunchTemplateRequest.Builder mergeDynamicTemplate(DynamicTemplateLaunchParams value)

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Parameter
NameDescription
valueDynamicTemplateLaunchParams
Returns
TypeDescription
LaunchTemplateRequest.Builder

mergeFrom(LaunchTemplateRequest other)

public LaunchTemplateRequest.Builder mergeFrom(LaunchTemplateRequest other)
Parameter
NameDescription
otherLaunchTemplateRequest
Returns
TypeDescription
LaunchTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLaunchParameters(LaunchTemplateParameters value)

public LaunchTemplateRequest.Builder mergeLaunchParameters(LaunchTemplateParameters value)

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Parameter
NameDescription
valueLaunchTemplateParameters
Returns
TypeDescription
LaunchTemplateRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDynamicTemplate(DynamicTemplateLaunchParams value)

public LaunchTemplateRequest.Builder setDynamicTemplate(DynamicTemplateLaunchParams value)

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Parameter
NameDescription
valueDynamicTemplateLaunchParams
Returns
TypeDescription
LaunchTemplateRequest.Builder

setDynamicTemplate(DynamicTemplateLaunchParams.Builder builderForValue)

public LaunchTemplateRequest.Builder setDynamicTemplate(DynamicTemplateLaunchParams.Builder builderForValue)

Params for launching a dynamic template.

.google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6;

Parameter
NameDescription
builderForValueDynamicTemplateLaunchParams.Builder
Returns
TypeDescription
LaunchTemplateRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsPath(String value)

public LaunchTemplateRequest.Builder setGcsPath(String value)

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 = 3;

Parameter
NameDescription
valueString

The gcsPath to set.

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

setGcsPathBytes(ByteString value)

public LaunchTemplateRequest.Builder setGcsPathBytes(ByteString value)

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 = 3;

Parameter
NameDescription
valueByteString

The bytes for gcsPath to set.

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

setLaunchParameters(LaunchTemplateParameters value)

public LaunchTemplateRequest.Builder setLaunchParameters(LaunchTemplateParameters value)

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Parameter
NameDescription
valueLaunchTemplateParameters
Returns
TypeDescription
LaunchTemplateRequest.Builder

setLaunchParameters(LaunchTemplateParameters.Builder builderForValue)

public LaunchTemplateRequest.Builder setLaunchParameters(LaunchTemplateParameters.Builder builderForValue)

The parameters of the template to launch. This should be part of the body of the POST request.

.google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4;

Parameter
NameDescription
builderForValueLaunchTemplateParameters.Builder
Returns
TypeDescription
LaunchTemplateRequest.Builder

setLocation(String value)

public LaunchTemplateRequest.Builder setLocation(String value)

The regional endpoint to which to direct the request.

string location = 5;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public LaunchTemplateRequest.Builder setLocationBytes(ByteString value)

The regional endpoint to which to direct the request.

string location = 5;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.

setProjectId(String value)

public LaunchTemplateRequest.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
LaunchTemplateRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public LaunchTemplateRequest.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
LaunchTemplateRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidateOnly(boolean value)

public LaunchTemplateRequest.Builder setValidateOnly(boolean value)

If true, the request is validated but not actually executed. Defaults to false.

bool validate_only = 2;

Parameter
NameDescription
valueboolean

The validateOnly to set.

Returns
TypeDescription
LaunchTemplateRequest.Builder

This builder for chaining.