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.GeneratedMessage.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.GeneratedMessage.Builder<WorkerSettings.Builder>
implements WorkerSettingsOrBuilder
Provides data to pass through to the worker harness.Protobuf type
google.dataflow.v1beta3.WorkerSettings-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The base URL for accessing Google Cloud APIs.Whether to send work progress updates to the service.The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".The prefix of the resources the system should use for temporary storage.The ID of the worker running this pipeline.The base URL for accessing Google Cloud APIs.com.google.protobuf.ByteStringThe base URL for accessing Google Cloud APIs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether to send work progress updates to the service.The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".com.google.protobuf.ByteStringThe Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".com.google.protobuf.ByteStringThe Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".The prefix of the resources the system should use for temporary storage.com.google.protobuf.ByteStringThe prefix of the resources the system should use for temporary storage.The ID of the worker running this pipeline.com.google.protobuf.ByteStringThe ID of the worker running this pipeline.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(WorkerSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBaseUrl(String value) The base URL for accessing Google Cloud APIs.setBaseUrlBytes(com.google.protobuf.ByteString value) The base URL for accessing Google Cloud APIs.setReportingEnabled(boolean value) Whether to send work progress updates to the service.setServicePath(String value) The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".setServicePathBytes(com.google.protobuf.ByteString value) The Cloud Dataflow service path relative to the root URL, for example, "dataflow/v1b3/projects".setShuffleServicePath(String value) The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".setShuffleServicePathBytes(com.google.protobuf.ByteString value) The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".setTempStoragePrefix(String value) The prefix of the resources the system should use for temporary storage.setTempStoragePrefixBytes(com.google.protobuf.ByteString value) The prefix of the resources the system should use for temporary storage.setWorkerId(String value) The ID of the worker running this pipeline.setWorkerIdBytes(com.google.protobuf.ByteString value) The ID of the worker running this pipeline.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WorkerSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<WorkerSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkerSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
Whether to send work progress updates to the service.
bool reporting_enabled = 2;- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
The Shuffle service path relative to the root URL, for example, "shuffle/v1beta1".
string shuffle_service_path = 4;- Returns:
- This builder for chaining.
-
setShuffleServicePathBytes
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
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
The ID of the worker running this pipeline.
string worker_id = 5;- Parameters:
value- The workerId to set.- Returns:
- This builder for chaining.
-
clearWorkerId
The ID of the worker running this pipeline.
string worker_id = 5;- Returns:
- This builder for chaining.
-
setWorkerIdBytes
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
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
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
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
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.
-