Class Package.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
com.google.dataflow.v1beta3.Package.Builder
All Implemented Interfaces:
PackageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Package

public static final class Package.Builder extends com.google.protobuf.GeneratedMessage.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
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The resource to read the package from.
    The name of the package.
    Optional.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The resource to read the package from.
    com.google.protobuf.ByteString
    The resource to read the package from.
    The name of the package.
    com.google.protobuf.ByteString
    The name of the package.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The resource to read the package from.
    setLocationBytes(com.google.protobuf.ByteString value)
    The resource to read the package from.
    setName(String value)
    The name of the package.
    setNameBytes(com.google.protobuf.ByteString value)
    The name of the package.
    Optional.
    setSha256Bytes(com.google.protobuf.ByteString value)
    Optional.

    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, 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

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
    • clear

      public Package.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
    • getDefaultInstanceForType

      public Package getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Package build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Package buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Package.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Package.Builder>
    • mergeFrom

      public Package.Builder mergeFrom(Package other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Package.Builder>
    • mergeFrom

      public Package.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Package.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the package.
       
      string name = 1;
      Specified by:
      getName in interface PackageOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the package.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PackageOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Package.Builder setName(String value)
       The name of the package.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Package.Builder clearName()
       The name of the package.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Package.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the package.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getLocation in interface PackageOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.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;
      Specified by:
      getLocationBytes in interface PackageOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      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;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setLocationBytes

      public Package.Builder setLocationBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getSha256 in interface PackageOrBuilder
      Returns:
      The sha256.
    • getSha256Bytes

      public com.google.protobuf.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];
      Specified by:
      getSha256Bytes in interface PackageOrBuilder
      Returns:
      The bytes for sha256.
    • setSha256

      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];
      Parameters:
      value - The sha256 to set.
      Returns:
      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:
      This builder for chaining.
    • setSha256Bytes

      public Package.Builder setSha256Bytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for sha256 to set.
      Returns:
      This builder for chaining.