public static final class Package.Builder extends GeneratedMessage.Builder<Package.Builder> implements PackageOrBuilderThe packages that must be installed in order for a worker to run the steps of the Cloud Dataflow job that will be assigned to its worker pool.
This is the mechanism by which the Cloud Dataflow SDK causes code to be loaded onto the workers. For example, the Cloud Dataflow Java SDK might use this to install jars containing the user's code and all of the various dependencies (libraries, data files, etc.) required in order for that code to run.
Protobuf type google.dataflow.v1beta3.Package
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Package.BuilderImplements
PackageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Package build()| Returns | |
|---|---|
| Type | Description |
Package |
|
buildPartial()
public Package buildPartial()| Returns | |
|---|---|
| Type | Description |
Package |
|
clear()
public Package.Builder clear()| Returns | |
|---|---|
| Type | Description |
Package.Builder |
|
clearLocation()
public Package.Builder clearLocation()The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
string location = 2;
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
clearName()
public Package.Builder clearName()The name of the package.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
clearSha256()
public Package.Builder clearSha256()Optional. The hex-encoded SHA256 checksum of the package. If the checksum is provided, the worker will verify the checksum of the package before using it. If the checksum does not match, the worker will fail to start.
string sha256 = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Package getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Package |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLocation()
public String getLocation()The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
string location = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The location. |
getLocationBytes()
public ByteString getLocationBytes()The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
string location = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for location. |
getName()
public String getName()The name of the package.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The name of the package.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSha256()
public String getSha256()Optional. The hex-encoded SHA256 checksum of the package. If the checksum is provided, the worker will verify the checksum of the package before using it. If the checksum does not match, the worker will fail to start.
string sha256 = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The sha256. |
getSha256Bytes()
public ByteString getSha256Bytes()Optional. The hex-encoded SHA256 checksum of the package. If the checksum is provided, the worker will verify the checksum of the package before using it. If the checksum does not match, the worker will fail to start.
string sha256 = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sha256. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Package other)
public Package.Builder mergeFrom(Package other)| Parameter | |
|---|---|
| Name | Description |
other |
Package |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Package.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Package.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
|
setLocation(String value)
public Package.Builder setLocation(String value)The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
string location = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe location to set. |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
setLocationBytes(ByteString value)
public Package.Builder setLocationBytes(ByteString value)The resource to read the package from. The supported resource type is:
Google Cloud Storage:
storage.googleapis.com/{bucket} bucket.storage.googleapis.com/
string location = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for location to set. |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
setName(String value)
public Package.Builder setName(String value)The name of the package.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Package.Builder setNameBytes(ByteString value)The name of the package.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
setSha256(String value)
public Package.Builder setSha256(String value)Optional. The hex-encoded SHA256 checksum of the package. If the checksum is provided, the worker will verify the checksum of the package before using it. If the checksum does not match, the worker will fail to start.
string sha256 = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sha256 to set. |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |
setSha256Bytes(ByteString value)
public Package.Builder setSha256Bytes(ByteString value)Optional. The hex-encoded SHA256 checksum of the package. If the checksum is provided, the worker will verify the checksum of the package before using it. If the checksum does not match, the worker will fail to start.
string sha256 = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sha256 to set. |
| Returns | |
|---|---|
| Type | Description |
Package.Builder |
This builder for chaining. |