Class OperationMetadataV1.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OperationMetadataV1.Builder>
com.google.cloud.functions.v1.OperationMetadataV1.Builder
All Implemented Interfaces:
OperationMetadataV1OrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OperationMetadataV1

public static final class OperationMetadataV1.Builder extends com.google.protobuf.GeneratedMessage.Builder<OperationMetadataV1.Builder> implements OperationMetadataV1OrBuilder
 Metadata describing an [Operation][google.longrunning.Operation]
 
Protobuf type google.cloud.functions.v1.OperationMetadataV1
  • 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<OperationMetadataV1.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<OperationMetadataV1.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<OperationMetadataV1.Builder>
    • getDefaultInstanceForType

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

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

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

      public OperationMetadataV1.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<OperationMetadataV1.Builder>
    • mergeFrom

    • isInitialized

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

      public OperationMetadataV1.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<OperationMetadataV1.Builder>
      Throws:
      IOException
    • getTarget

      public String getTarget()
       Target of the operation - for example
       `projects/project-1/locations/region-1/functions/function-1`
       
      string target = 1;
      Specified by:
      getTarget in interface OperationMetadataV1OrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       Target of the operation - for example
       `projects/project-1/locations/region-1/functions/function-1`
       
      string target = 1;
      Specified by:
      getTargetBytes in interface OperationMetadataV1OrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public OperationMetadataV1.Builder setTarget(String value)
       Target of the operation - for example
       `projects/project-1/locations/region-1/functions/function-1`
       
      string target = 1;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public OperationMetadataV1.Builder clearTarget()
       Target of the operation - for example
       `projects/project-1/locations/region-1/functions/function-1`
       
      string target = 1;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public OperationMetadataV1.Builder setTargetBytes(com.google.protobuf.ByteString value)
       Target of the operation - for example
       `projects/project-1/locations/region-1/functions/function-1`
       
      string target = 1;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       Type of operation.
       
      .google.cloud.functions.v1.OperationType type = 2;
      Specified by:
      getTypeValue in interface OperationMetadataV1OrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public OperationMetadataV1.Builder setTypeValue(int value)
       Type of operation.
       
      .google.cloud.functions.v1.OperationType type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public OperationType getType()
       Type of operation.
       
      .google.cloud.functions.v1.OperationType type = 2;
      Specified by:
      getType in interface OperationMetadataV1OrBuilder
      Returns:
      The type.
    • setType

       Type of operation.
       
      .google.cloud.functions.v1.OperationType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public OperationMetadataV1.Builder clearType()
       Type of operation.
       
      .google.cloud.functions.v1.OperationType type = 2;
      Returns:
      This builder for chaining.
    • hasRequest

      public boolean hasRequest()
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
      Specified by:
      hasRequest in interface OperationMetadataV1OrBuilder
      Returns:
      Whether the request field is set.
    • getRequest

      public com.google.protobuf.Any getRequest()
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
      Specified by:
      getRequest in interface OperationMetadataV1OrBuilder
      Returns:
      The request.
    • setRequest

      public OperationMetadataV1.Builder setRequest(com.google.protobuf.Any value)
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
    • setRequest

      public OperationMetadataV1.Builder setRequest(com.google.protobuf.Any.Builder builderForValue)
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
    • mergeRequest

      public OperationMetadataV1.Builder mergeRequest(com.google.protobuf.Any value)
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
    • clearRequest

      public OperationMetadataV1.Builder clearRequest()
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
    • getRequestBuilder

      public com.google.protobuf.Any.Builder getRequestBuilder()
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
    • getRequestOrBuilder

      public com.google.protobuf.AnyOrBuilder getRequestOrBuilder()
       The original request that started the operation.
       
      .google.protobuf.Any request = 3;
      Specified by:
      getRequestOrBuilder in interface OperationMetadataV1OrBuilder
    • getVersionId

      public long getVersionId()
       Version id of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      int64 version_id = 4;
      Specified by:
      getVersionId in interface OperationMetadataV1OrBuilder
      Returns:
      The versionId.
    • setVersionId

      public OperationMetadataV1.Builder setVersionId(long value)
       Version id of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      int64 version_id = 4;
      Parameters:
      value - The versionId to set.
      Returns:
      This builder for chaining.
    • clearVersionId

      public OperationMetadataV1.Builder clearVersionId()
       Version id of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      int64 version_id = 4;
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
      Specified by:
      hasUpdateTime in interface OperationMetadataV1OrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
      Specified by:
      getUpdateTime in interface OperationMetadataV1OrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public OperationMetadataV1.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
    • setUpdateTime

      public OperationMetadataV1.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
    • mergeUpdateTime

      public OperationMetadataV1.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
    • clearUpdateTime

      public OperationMetadataV1.Builder clearUpdateTime()
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       The last update timestamp of the operation.
       
      .google.protobuf.Timestamp update_time = 5;
      Specified by:
      getUpdateTimeOrBuilder in interface OperationMetadataV1OrBuilder
    • getBuildId

      public String getBuildId()
       The Cloud Build ID of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      string build_id = 6;
      Specified by:
      getBuildId in interface OperationMetadataV1OrBuilder
      Returns:
      The buildId.
    • getBuildIdBytes

      public com.google.protobuf.ByteString getBuildIdBytes()
       The Cloud Build ID of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      string build_id = 6;
      Specified by:
      getBuildIdBytes in interface OperationMetadataV1OrBuilder
      Returns:
      The bytes for buildId.
    • setBuildId

      public OperationMetadataV1.Builder setBuildId(String value)
       The Cloud Build ID of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      string build_id = 6;
      Parameters:
      value - The buildId to set.
      Returns:
      This builder for chaining.
    • clearBuildId

      public OperationMetadataV1.Builder clearBuildId()
       The Cloud Build ID of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      string build_id = 6;
      Returns:
      This builder for chaining.
    • setBuildIdBytes

      public OperationMetadataV1.Builder setBuildIdBytes(com.google.protobuf.ByteString value)
       The Cloud Build ID of the function created or updated by an API call.
       This field is only populated for Create and Update operations.
       
      string build_id = 6;
      Parameters:
      value - The bytes for buildId to set.
      Returns:
      This builder for chaining.
    • getSourceToken

      public String getSourceToken()
       An identifier for Firebase function sources. Disclaimer: This field is only
       supported for Firebase function deployments.
       
      string source_token = 7;
      Specified by:
      getSourceToken in interface OperationMetadataV1OrBuilder
      Returns:
      The sourceToken.
    • getSourceTokenBytes

      public com.google.protobuf.ByteString getSourceTokenBytes()
       An identifier for Firebase function sources. Disclaimer: This field is only
       supported for Firebase function deployments.
       
      string source_token = 7;
      Specified by:
      getSourceTokenBytes in interface OperationMetadataV1OrBuilder
      Returns:
      The bytes for sourceToken.
    • setSourceToken

      public OperationMetadataV1.Builder setSourceToken(String value)
       An identifier for Firebase function sources. Disclaimer: This field is only
       supported for Firebase function deployments.
       
      string source_token = 7;
      Parameters:
      value - The sourceToken to set.
      Returns:
      This builder for chaining.
    • clearSourceToken

      public OperationMetadataV1.Builder clearSourceToken()
       An identifier for Firebase function sources. Disclaimer: This field is only
       supported for Firebase function deployments.
       
      string source_token = 7;
      Returns:
      This builder for chaining.
    • setSourceTokenBytes

      public OperationMetadataV1.Builder setSourceTokenBytes(com.google.protobuf.ByteString value)
       An identifier for Firebase function sources. Disclaimer: This field is only
       supported for Firebase function deployments.
       
      string source_token = 7;
      Parameters:
      value - The bytes for sourceToken to set.
      Returns:
      This builder for chaining.
    • getBuildName

      public String getBuildName()
       The Cloud Build Name of the function deployment.
       This field is only populated for Create and Update operations.
       `projects/<project-number>/locations/<region>/builds/<build-id>`.
       
      string build_name = 8;
      Specified by:
      getBuildName in interface OperationMetadataV1OrBuilder
      Returns:
      The buildName.
    • getBuildNameBytes

      public com.google.protobuf.ByteString getBuildNameBytes()
       The Cloud Build Name of the function deployment.
       This field is only populated for Create and Update operations.
       `projects/<project-number>/locations/<region>/builds/<build-id>`.
       
      string build_name = 8;
      Specified by:
      getBuildNameBytes in interface OperationMetadataV1OrBuilder
      Returns:
      The bytes for buildName.
    • setBuildName

      public OperationMetadataV1.Builder setBuildName(String value)
       The Cloud Build Name of the function deployment.
       This field is only populated for Create and Update operations.
       `projects/<project-number>/locations/<region>/builds/<build-id>`.
       
      string build_name = 8;
      Parameters:
      value - The buildName to set.
      Returns:
      This builder for chaining.
    • clearBuildName

      public OperationMetadataV1.Builder clearBuildName()
       The Cloud Build Name of the function deployment.
       This field is only populated for Create and Update operations.
       `projects/<project-number>/locations/<region>/builds/<build-id>`.
       
      string build_name = 8;
      Returns:
      This builder for chaining.
    • setBuildNameBytes

      public OperationMetadataV1.Builder setBuildNameBytes(com.google.protobuf.ByteString value)
       The Cloud Build Name of the function deployment.
       This field is only populated for Create and Update operations.
       `projects/<project-number>/locations/<region>/builds/<build-id>`.
       
      string build_name = 8;
      Parameters:
      value - The bytes for buildName to set.
      Returns:
      This builder for chaining.