Package com.google.dataflow.v1beta3
Class WorkerSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
- com.google.dataflow.v1beta3.WorkerSettings.Builder
-
- All Implemented Interfaces:
WorkerSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- WorkerSettings
public static final class WorkerSettings.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder> implements WorkerSettingsOrBuilder
Provides data to pass through to the worker harness.
Protobuf typegoogle.dataflow.v1beta3.WorkerSettings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkerSettings.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WorkerSettingsbuild()WorkerSettingsbuildPartial()WorkerSettings.Builderclear()WorkerSettings.BuilderclearBaseUrl()The base URL for accessing Google Cloud APIs.WorkerSettings.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WorkerSettings.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WorkerSettings.BuilderclearReportingEnabled()Whether to send work progress updates to the service.WorkerSettings.BuilderclearServicePath()The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".WorkerSettings.BuilderclearShuffleServicePath()The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".WorkerSettings.BuilderclearTempStoragePrefix()The prefix of the resources the system should use for temporary storage.WorkerSettings.BuilderclearWorkerId()The ID of the worker running this pipeline.WorkerSettings.Builderclone()StringgetBaseUrl()The base URL for accessing Google Cloud APIs.com.google.protobuf.ByteStringgetBaseUrlBytes()The base URL for accessing Google Cloud APIs.WorkerSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetReportingEnabled()Whether to send work progress updates to the service.StringgetServicePath()The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".com.google.protobuf.ByteStringgetServicePathBytes()The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".StringgetShuffleServicePath()The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".com.google.protobuf.ByteStringgetShuffleServicePathBytes()The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".StringgetTempStoragePrefix()The prefix of the resources the system should use for temporary storage.com.google.protobuf.ByteStringgetTempStoragePrefixBytes()The prefix of the resources the system should use for temporary storage.StringgetWorkerId()The ID of the worker running this pipeline.com.google.protobuf.ByteStringgetWorkerIdBytes()The ID of the worker running this pipeline.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WorkerSettings.BuildermergeFrom(WorkerSettings other)WorkerSettings.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WorkerSettings.BuildermergeFrom(com.google.protobuf.Message other)WorkerSettings.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkerSettings.BuildersetBaseUrl(String value)The base URL for accessing Google Cloud APIs.WorkerSettings.BuildersetBaseUrlBytes(com.google.protobuf.ByteString value)The base URL for accessing Google Cloud APIs.WorkerSettings.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)WorkerSettings.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)WorkerSettings.BuildersetReportingEnabled(boolean value)Whether to send work progress updates to the service.WorkerSettings.BuildersetServicePath(String value)The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".WorkerSettings.BuildersetServicePathBytes(com.google.protobuf.ByteString value)The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".WorkerSettings.BuildersetShuffleServicePath(String value)The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".WorkerSettings.BuildersetShuffleServicePathBytes(com.google.protobuf.ByteString value)The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".WorkerSettings.BuildersetTempStoragePrefix(String value)The prefix of the resources the system should use for temporary storage.WorkerSettings.BuildersetTempStoragePrefixBytes(com.google.protobuf.ByteString value)The prefix of the resources the system should use for temporary storage.WorkerSettings.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkerSettings.BuildersetWorkerId(String value)The ID of the worker running this pipeline.WorkerSettings.BuildersetWorkerIdBytes(com.google.protobuf.ByteString value)The ID of the worker running this pipeline.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
clear
public WorkerSettings.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
getDefaultInstanceForType
public WorkerSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkerSettings build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkerSettings buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkerSettings.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
setField
public WorkerSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
clearField
public WorkerSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
clearOneof
public WorkerSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
setRepeatedField
public WorkerSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
addRepeatedField
public WorkerSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
mergeFrom
public WorkerSettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerSettings.Builder>
-
mergeFrom
public WorkerSettings.Builder mergeFrom(WorkerSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
mergeFrom
public WorkerSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerSettings.Builder>- Throws:
IOException
-
getBaseUrl
public String getBaseUrl()
The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/"
string base_url = 1;- Specified by:
getBaseUrlin interfaceWorkerSettingsOrBuilder- Returns:
- The baseUrl.
-
getBaseUrlBytes
public com.google.protobuf.ByteString getBaseUrlBytes()
The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/"
string base_url = 1;- Specified by:
getBaseUrlBytesin interfaceWorkerSettingsOrBuilder- Returns:
- The bytes for baseUrl.
-
setBaseUrl
public WorkerSettings.Builder setBaseUrl(String value)
The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/"
string base_url = 1;- Parameters:
value- The baseUrl to set.- Returns:
- This builder for chaining.
-
clearBaseUrl
public WorkerSettings.Builder clearBaseUrl()
The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/"
string base_url = 1;- Returns:
- This builder for chaining.
-
setBaseUrlBytes
public WorkerSettings.Builder setBaseUrlBytes(com.google.protobuf.ByteString value)
The base URL for accessing Google Cloud APIs. When workers access Google Cloud APIs, they logically do so via relative URLs. If this field is specified, it supplies the base URL to use for resolving these relative URLs. The normative algorithm used is defined by RFC 1808, "Relative Uniform Resource Locators". If not specified, the default value is "http://www.googleapis.com/"
string base_url = 1;- Parameters:
value- The bytes for baseUrl to set.- Returns:
- This builder for chaining.
-
getReportingEnabled
public boolean getReportingEnabled()
Whether to send work progress updates to the service.
bool reporting_enabled = 2;- Specified by:
getReportingEnabledin interfaceWorkerSettingsOrBuilder- Returns:
- The reportingEnabled.
-
setReportingEnabled
public WorkerSettings.Builder setReportingEnabled(boolean value)
Whether to send work progress updates to the service.
bool reporting_enabled = 2;- Parameters:
value- The reportingEnabled to set.- Returns:
- This builder for chaining.
-
clearReportingEnabled
public WorkerSettings.Builder clearReportingEnabled()
Whether to send work progress updates to the service.
bool reporting_enabled = 2;- Returns:
- This builder for chaining.
-
getServicePath
public String getServicePath()
The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
string service_path = 3;- Specified by:
getServicePathin interfaceWorkerSettingsOrBuilder- Returns:
- The servicePath.
-
getServicePathBytes
public com.google.protobuf.ByteString getServicePathBytes()
The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
string service_path = 3;- Specified by:
getServicePathBytesin interfaceWorkerSettingsOrBuilder- Returns:
- The bytes for servicePath.
-
setServicePath
public WorkerSettings.Builder setServicePath(String value)
The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
string service_path = 3;- Parameters:
value- The servicePath to set.- Returns:
- This builder for chaining.
-
clearServicePath
public WorkerSettings.Builder clearServicePath()
The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
string service_path = 3;- Returns:
- This builder for chaining.
-
setServicePathBytes
public WorkerSettings.Builder setServicePathBytes(com.google.protobuf.ByteString value)
The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".
string service_path = 3;- Parameters:
value- The bytes for servicePath to set.- Returns:
- This builder for chaining.
-
getShuffleServicePath
public String getShuffleServicePath()
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
string shuffle_service_path = 4;- Specified by:
getShuffleServicePathin interfaceWorkerSettingsOrBuilder- Returns:
- The shuffleServicePath.
-
getShuffleServicePathBytes
public com.google.protobuf.ByteString getShuffleServicePathBytes()
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
string shuffle_service_path = 4;- Specified by:
getShuffleServicePathBytesin interfaceWorkerSettingsOrBuilder- Returns:
- The bytes for shuffleServicePath.
-
setShuffleServicePath
public WorkerSettings.Builder setShuffleServicePath(String value)
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
string shuffle_service_path = 4;- Parameters:
value- The shuffleServicePath to set.- Returns:
- This builder for chaining.
-
clearShuffleServicePath
public WorkerSettings.Builder clearShuffleServicePath()
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
string shuffle_service_path = 4;- Returns:
- This builder for chaining.
-
setShuffleServicePathBytes
public WorkerSettings.Builder setShuffleServicePathBytes(com.google.protobuf.ByteString value)
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
string shuffle_service_path = 4;- Parameters:
value- The bytes for shuffleServicePath to set.- Returns:
- This builder for chaining.
-
getWorkerId
public String getWorkerId()
The ID of the worker running this pipeline.
string worker_id = 5;- Specified by:
getWorkerIdin interfaceWorkerSettingsOrBuilder- Returns:
- The workerId.
-
getWorkerIdBytes
public com.google.protobuf.ByteString getWorkerIdBytes()
The ID of the worker running this pipeline.
string worker_id = 5;- Specified by:
getWorkerIdBytesin interfaceWorkerSettingsOrBuilder- Returns:
- The bytes for workerId.
-
setWorkerId
public WorkerSettings.Builder setWorkerId(String value)
The ID of the worker running this pipeline.
string worker_id = 5;- Parameters:
value- The workerId to set.- Returns:
- This builder for chaining.
-
clearWorkerId
public WorkerSettings.Builder clearWorkerId()
The ID of the worker running this pipeline.
string worker_id = 5;- Returns:
- This builder for chaining.
-
setWorkerIdBytes
public WorkerSettings.Builder setWorkerIdBytes(com.google.protobuf.ByteString value)
The ID of the worker running this pipeline.
string worker_id = 5;- Parameters:
value- The bytes for workerId to set.- Returns:
- This builder for chaining.
-
getTempStoragePrefix
public String getTempStoragePrefix()
The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}string temp_storage_prefix = 6;- Specified by:
getTempStoragePrefixin interfaceWorkerSettingsOrBuilder- Returns:
- The tempStoragePrefix.
-
getTempStoragePrefixBytes
public com.google.protobuf.ByteString getTempStoragePrefixBytes()
The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}string temp_storage_prefix = 6;- Specified by:
getTempStoragePrefixBytesin interfaceWorkerSettingsOrBuilder- Returns:
- The bytes for tempStoragePrefix.
-
setTempStoragePrefix
public WorkerSettings.Builder setTempStoragePrefix(String value)
The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}string temp_storage_prefix = 6;- Parameters:
value- The tempStoragePrefix to set.- Returns:
- This builder for chaining.
-
clearTempStoragePrefix
public WorkerSettings.Builder clearTempStoragePrefix()
The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}string temp_storage_prefix = 6;- Returns:
- This builder for chaining.
-
setTempStoragePrefixBytes
public WorkerSettings.Builder setTempStoragePrefixBytes(com.google.protobuf.ByteString value)
The prefix of the resources the system should use for temporary storage. The supported resource type is: Google Cloud Storage: storage.googleapis.com/{bucket}/{object} bucket.storage.googleapis.com/{object}string temp_storage_prefix = 6;- Parameters:
value- The bytes for tempStoragePrefix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final WorkerSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
mergeUnknownFields
public final WorkerSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkerSettings.Builder>
-
-