Class BatchOperationMetadata

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

    public final class BatchOperationMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements BatchOperationMetadataOrBuilder
     Metadata used for long running operations returned by CTS batch APIs.
     It's used to replace
     [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata].
     
    Protobuf type google.cloud.talent.v4beta1.BatchOperationMetadata
    See Also:
    Serialized Form
    • 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
      • getStateValue

        public int getStateValue()
         The state of a long running operation.
         
        .google.cloud.talent.v4beta1.BatchOperationMetadata.State state = 1;
        Specified by:
        getStateValue in interface BatchOperationMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getStateDescriptionBytes

        public com.google.protobuf.ByteString getStateDescriptionBytes()
         More detailed information about operation state.
         
        string state_description = 2;
        Specified by:
        getStateDescriptionBytes in interface BatchOperationMetadataOrBuilder
        Returns:
        The bytes for stateDescription.
      • hasCreateTime

        public boolean hasCreateTime()
         The time when the batch operation is created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        hasCreateTime in interface BatchOperationMetadataOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The time when the batch operation is created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTime in interface BatchOperationMetadataOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The time when the batch operation is created.
         
        .google.protobuf.Timestamp create_time = 6;
        Specified by:
        getCreateTimeOrBuilder in interface BatchOperationMetadataOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         The time when the batch operation status is updated. The metadata and the
         [update_time][google.cloud.talent.v4beta1.BatchOperationMetadata.update_time]
         is refreshed every minute otherwise cached data is returned.
         
        .google.protobuf.Timestamp update_time = 7;
        Specified by:
        hasUpdateTime in interface BatchOperationMetadataOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         The time when the batch operation status is updated. The metadata and the
         [update_time][google.cloud.talent.v4beta1.BatchOperationMetadata.update_time]
         is refreshed every minute otherwise cached data is returned.
         
        .google.protobuf.Timestamp update_time = 7;
        Specified by:
        getUpdateTime in interface BatchOperationMetadataOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         The time when the batch operation status is updated. The metadata and the
         [update_time][google.cloud.talent.v4beta1.BatchOperationMetadata.update_time]
         is refreshed every minute otherwise cached data is returned.
         
        .google.protobuf.Timestamp update_time = 7;
        Specified by:
        getUpdateTimeOrBuilder in interface BatchOperationMetadataOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         The time when the batch operation is finished and
         [google.longrunning.Operation.done][google.longrunning.Operation.done] is
         set to `true`.
         
        .google.protobuf.Timestamp end_time = 8;
        Specified by:
        hasEndTime in interface BatchOperationMetadataOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         The time when the batch operation is finished and
         [google.longrunning.Operation.done][google.longrunning.Operation.done] is
         set to `true`.
         
        .google.protobuf.Timestamp end_time = 8;
        Specified by:
        getEndTime in interface BatchOperationMetadataOrBuilder
        Returns:
        The endTime.
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         The time when the batch operation is finished and
         [google.longrunning.Operation.done][google.longrunning.Operation.done] is
         set to `true`.
         
        .google.protobuf.Timestamp end_time = 8;
        Specified by:
        getEndTimeOrBuilder in interface BatchOperationMetadataOrBuilder
      • 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 BatchOperationMetadata parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<BatchOperationMetadata> 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 BatchOperationMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder