Class GetTemplateRequest.Builder

  • All Implemented Interfaces:
    GetTemplateRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GetTemplateRequest

    public static final class GetTemplateRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
    implements GetTemplateRequestOrBuilder
     A request to retrieve a Cloud Dataflow job template.
     
    Protobuf type google.dataflow.v1beta3.GetTemplateRequest
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • clear

        public GetTemplateRequest.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.GeneratedMessageV3.Builder<GetTemplateRequest.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.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public GetTemplateRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • setField

        public GetTemplateRequest.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • clearField

        public GetTemplateRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • clearOneof

        public GetTemplateRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • setRepeatedField

        public GetTemplateRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • addRepeatedField

        public GetTemplateRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • mergeFrom

        public GetTemplateRequest.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<GetTemplateRequest.Builder>
      • isInitialized

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

        public GetTemplateRequest.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<GetTemplateRequest.Builder>
        Throws:
        IOException
      • getProjectId

        public String getProjectId()
         Required. The ID of the Cloud Platform project that the job belongs to.
         
        string project_id = 1;
        Specified by:
        getProjectId in interface GetTemplateRequestOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Required. The ID of the Cloud Platform project that the job belongs to.
         
        string project_id = 1;
        Specified by:
        getProjectIdBytes in interface GetTemplateRequestOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public GetTemplateRequest.Builder setProjectId​(String value)
         Required. The ID of the Cloud Platform project that the job belongs to.
         
        string project_id = 1;
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public GetTemplateRequest.Builder clearProjectId()
         Required. The ID of the Cloud Platform project that the job belongs to.
         
        string project_id = 1;
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public GetTemplateRequest.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Required. The ID of the Cloud Platform project that the job belongs to.
         
        string project_id = 1;
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • hasGcsPath

        public boolean hasGcsPath()
         Required. A Cloud Storage path to the template from which to
         create the job.
         Must be valid Cloud Storage URL, beginning with 'gs://'.
         
        string gcs_path = 2;
        Specified by:
        hasGcsPath in interface GetTemplateRequestOrBuilder
        Returns:
        Whether the gcsPath field is set.
      • getGcsPath

        public String getGcsPath()
         Required. A Cloud Storage path to the template from which to
         create the job.
         Must be valid Cloud Storage URL, beginning with 'gs://'.
         
        string gcs_path = 2;
        Specified by:
        getGcsPath in interface GetTemplateRequestOrBuilder
        Returns:
        The gcsPath.
      • getGcsPathBytes

        public com.google.protobuf.ByteString getGcsPathBytes()
         Required. A Cloud Storage path to the template from which to
         create the job.
         Must be valid Cloud Storage URL, beginning with 'gs://'.
         
        string gcs_path = 2;
        Specified by:
        getGcsPathBytes in interface GetTemplateRequestOrBuilder
        Returns:
        The bytes for gcsPath.
      • setGcsPath

        public GetTemplateRequest.Builder setGcsPath​(String value)
         Required. A Cloud Storage path to the template from which to
         create the job.
         Must be valid Cloud Storage URL, beginning with 'gs://'.
         
        string gcs_path = 2;
        Parameters:
        value - The gcsPath to set.
        Returns:
        This builder for chaining.
      • clearGcsPath

        public GetTemplateRequest.Builder clearGcsPath()
         Required. A Cloud Storage path to the template from which to
         create the job.
         Must be valid Cloud Storage URL, beginning with 'gs://'.
         
        string gcs_path = 2;
        Returns:
        This builder for chaining.
      • setGcsPathBytes

        public GetTemplateRequest.Builder setGcsPathBytes​(com.google.protobuf.ByteString value)
         Required. A Cloud Storage path to the template from which to
         create the job.
         Must be valid Cloud Storage URL, beginning with 'gs://'.
         
        string gcs_path = 2;
        Parameters:
        value - The bytes for gcsPath to set.
        Returns:
        This builder for chaining.
      • getViewValue

        public int getViewValue()
         The view to retrieve. Defaults to METADATA_ONLY.
         
        .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
        Specified by:
        getViewValue in interface GetTemplateRequestOrBuilder
        Returns:
        The enum numeric value on the wire for view.
      • setViewValue

        public GetTemplateRequest.Builder setViewValue​(int value)
         The view to retrieve. Defaults to METADATA_ONLY.
         
        .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
        Parameters:
        value - The enum numeric value on the wire for view to set.
        Returns:
        This builder for chaining.
      • setView

        public GetTemplateRequest.Builder setView​(GetTemplateRequest.TemplateView value)
         The view to retrieve. Defaults to METADATA_ONLY.
         
        .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
        Parameters:
        value - The view to set.
        Returns:
        This builder for chaining.
      • clearView

        public GetTemplateRequest.Builder clearView()
         The view to retrieve. Defaults to METADATA_ONLY.
         
        .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3;
        Returns:
        This builder for chaining.
      • getLocation

        public String getLocation()
         The [regional endpoint]
         (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
         which to direct the request.
         
        string location = 4;
        Specified by:
        getLocation in interface GetTemplateRequestOrBuilder
        Returns:
        The location.
      • getLocationBytes

        public com.google.protobuf.ByteString getLocationBytes()
         The [regional endpoint]
         (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
         which to direct the request.
         
        string location = 4;
        Specified by:
        getLocationBytes in interface GetTemplateRequestOrBuilder
        Returns:
        The bytes for location.
      • setLocation

        public GetTemplateRequest.Builder setLocation​(String value)
         The [regional endpoint]
         (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
         which to direct the request.
         
        string location = 4;
        Parameters:
        value - The location to set.
        Returns:
        This builder for chaining.
      • clearLocation

        public GetTemplateRequest.Builder clearLocation()
         The [regional endpoint]
         (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
         which to direct the request.
         
        string location = 4;
        Returns:
        This builder for chaining.
      • setLocationBytes

        public GetTemplateRequest.Builder setLocationBytes​(com.google.protobuf.ByteString value)
         The [regional endpoint]
         (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
         which to direct the request.
         
        string location = 4;
        Parameters:
        value - The bytes for location to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GetTemplateRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>
      • mergeUnknownFields

        public final GetTemplateRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GetTemplateRequest.Builder>