public static final class Package.Builder extends GeneratedMessageV3.Builder<Package.Builder> implements PackageOrBuilder
The 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Package.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public Package buildPartial()
clear()
public Package.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Package.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
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;
clearName()
public Package.Builder clearName()
The name of the package.
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Package.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Package.Builder clone()
Overrides
getDefaultInstanceForType()
public Package getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Package other)
public Package.Builder mergeFrom(Package other)
Parameter |
---|
Name | Description |
other | Package
|
public Package.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Package.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Package.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Package.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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 | String
The location to set.
|
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 | ByteString
The bytes for location to set.
|
setName(String value)
public Package.Builder setName(String value)
The name of the package.
string name = 1;
Parameter |
---|
Name | Description |
value | String
The name to set.
|
setNameBytes(ByteString value)
public Package.Builder setNameBytes(ByteString value)
The name of the package.
string name = 1;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for name to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Package.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Package.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides