Class OperationMetadataV1

  • All Implemented Interfaces:
    OperationMetadataV1OrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class OperationMetadataV1
    extends com.google.protobuf.GeneratedMessageV3
    implements OperationMetadataV1OrBuilder
     Metadata describing an [Operation][google.longrunning.Operation]
     
    Protobuf type google.cloud.functions.v1.OperationMetadataV1
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OperationMetadataV1.Builder
      Metadata describing an [Operation][google.longrunning.Operation]
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static OperationMetadataV1 parseFrom​(ByteBuffer data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OperationMetadataV1 parseFrom​(ByteBuffer data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OperationMetadataV1 parseFrom​(com.google.protobuf.ByteString data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OperationMetadataV1 parseFrom​(com.google.protobuf.ByteString data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OperationMetadataV1 parseFrom​(byte[] data)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OperationMetadataV1 parseFrom​(byte[] data,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static OperationMetadataV1 parseFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected OperationMetadataV1.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<OperationMetadataV1> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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