Class ServiceResources.Builder (0.67.0)

public static final class ServiceResources.Builder extends GeneratedMessageV3.Builder<ServiceResources.Builder> implements ServiceResourcesOrBuilder

Resources used by the Dataflow Service to run the job.

Protobuf type google.dataflow.v1beta3.ServiceResources

Static Methods

getDescriptor()

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

Methods

addAllZones(Iterable<String> values)

public ServiceResources.Builder addAllZones(Iterable<String> values)

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The zones to add.

Returns
Type Description
ServiceResources.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addZones(String value)

public ServiceResources.Builder addZones(String value)

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The zones to add.

Returns
Type Description
ServiceResources.Builder

This builder for chaining.

addZonesBytes(ByteString value)

public ServiceResources.Builder addZonesBytes(ByteString value)

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the zones to add.

Returns
Type Description
ServiceResources.Builder

This builder for chaining.

build()

public ServiceResources build()
Returns
Type Description
ServiceResources

buildPartial()

public ServiceResources buildPartial()
Returns
Type Description
ServiceResources

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZones()

public ServiceResources.Builder clearZones()

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceResources.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceResources getDefaultInstanceForType()
Returns
Type Description
ServiceResources

getDescriptorForType()

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

getZones(int index)

public String getZones(int index)

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The zones at the given index.

getZonesBytes(int index)

public ByteString getZonesBytes(int index)

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the zones at the given index.

getZonesCount()

public int getZonesCount()

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of zones.

getZonesList()

public ProtocolStringList getZonesList()

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the zones.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceResources other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setZones(int index, String value)

public ServiceResources.Builder setZones(int index, String value)

Output only. List of Cloud Zones being used by the Dataflow Service for this job. Example: us-central1-c

repeated string zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The zones to set.

Returns
Type Description
ServiceResources.Builder

This builder for chaining.