Class OperationMetadata

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

    public final class OperationMetadata
    extends com.google.protobuf.GeneratedMessageV3
    implements OperationMetadataOrBuilder
     The metadata associated with a long running operation resource.
     
    Protobuf type google.api.servicemanagement.v1.OperationMetadata
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_NAMES_FIELD_NUMBER

        public static final int RESOURCE_NAMES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROGRESS_PERCENTAGE_FIELD_NUMBER

        public static final int PROGRESS_PERCENTAGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • START_TIME_FIELD_NUMBER

        public static final int START_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getResourceNamesList

        public com.google.protobuf.ProtocolStringList getResourceNamesList()
         The full name of the resources that this operation is directly
         associated with.
         
        repeated string resource_names = 1;
        Specified by:
        getResourceNamesList in interface OperationMetadataOrBuilder
        Returns:
        A list containing the resourceNames.
      • getResourceNamesCount

        public int getResourceNamesCount()
         The full name of the resources that this operation is directly
         associated with.
         
        repeated string resource_names = 1;
        Specified by:
        getResourceNamesCount in interface OperationMetadataOrBuilder
        Returns:
        The count of resourceNames.
      • getResourceNames

        public String getResourceNames​(int index)
         The full name of the resources that this operation is directly
         associated with.
         
        repeated string resource_names = 1;
        Specified by:
        getResourceNames in interface OperationMetadataOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The resourceNames at the given index.
      • getResourceNamesBytes

        public com.google.protobuf.ByteString getResourceNamesBytes​(int index)
         The full name of the resources that this operation is directly
         associated with.
         
        repeated string resource_names = 1;
        Specified by:
        getResourceNamesBytes in interface OperationMetadataOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the resourceNames at the given index.
      • getStepsCount

        public int getStepsCount()
         Detailed status information for each step. The order is undetermined.
         
        repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;
        Specified by:
        getStepsCount in interface OperationMetadataOrBuilder
      • getProgressPercentage

        public int getProgressPercentage()
         Percentage of completion of this operation, ranging from 0 to 100.
         
        int32 progress_percentage = 3;
        Specified by:
        getProgressPercentage in interface OperationMetadataOrBuilder
        Returns:
        The progressPercentage.
      • hasStartTime

        public boolean hasStartTime()
         The start time of the operation.
         
        .google.protobuf.Timestamp start_time = 4;
        Specified by:
        hasStartTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         The start time of the operation.
         
        .google.protobuf.Timestamp start_time = 4;
        Specified by:
        getStartTime in interface OperationMetadataOrBuilder
        Returns:
        The startTime.
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         The start time of the operation.
         
        .google.protobuf.Timestamp start_time = 4;
        Specified by:
        getStartTimeOrBuilder in interface OperationMetadataOrBuilder
      • 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 OperationMetadata parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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