Class OperationMetadata.Builder

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

    public static final class OperationMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<OperationMetadata.Builder>
    implements OperationMetadataOrBuilder
     Metadata for google.longrunning.Operation.
     
    Protobuf type google.cloud.vpcaccess.v1.OperationMetadata
    • 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<OperationMetadata.Builder>
      • clear

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

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

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

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

        public OperationMetadata.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<OperationMetadata.Builder>
      • setField

        public OperationMetadata.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<OperationMetadata.Builder>
      • clearField

        public OperationMetadata.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<OperationMetadata.Builder>
      • clearOneof

        public OperationMetadata.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<OperationMetadata.Builder>
      • setRepeatedField

        public OperationMetadata.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<OperationMetadata.Builder>
      • addRepeatedField

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

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

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

        public OperationMetadata.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<OperationMetadata.Builder>
        Throws:
        IOException
      • getMethod

        public String getMethod()
         Output only. Method that initiated the operation e.g.
         google.cloud.vpcaccess.v1.Connectors.CreateConnector.
         
        string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMethod in interface OperationMetadataOrBuilder
        Returns:
        The method.
      • getMethodBytes

        public com.google.protobuf.ByteString getMethodBytes()
         Output only. Method that initiated the operation e.g.
         google.cloud.vpcaccess.v1.Connectors.CreateConnector.
         
        string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMethodBytes in interface OperationMetadataOrBuilder
        Returns:
        The bytes for method.
      • setMethod

        public OperationMetadata.Builder setMethod​(String value)
         Output only. Method that initiated the operation e.g.
         google.cloud.vpcaccess.v1.Connectors.CreateConnector.
         
        string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The method to set.
        Returns:
        This builder for chaining.
      • clearMethod

        public OperationMetadata.Builder clearMethod()
         Output only. Method that initiated the operation e.g.
         google.cloud.vpcaccess.v1.Connectors.CreateConnector.
         
        string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setMethodBytes

        public OperationMetadata.Builder setMethodBytes​(com.google.protobuf.ByteString value)
         Output only. Method that initiated the operation e.g.
         google.cloud.vpcaccess.v1.Connectors.CreateConnector.
         
        string method = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for method to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface OperationMetadataOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public OperationMetadata.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public OperationMetadata.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public OperationMetadata.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public OperationMetadata.Builder clearCreateTime()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Time when the operation was created.
         
        .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface OperationMetadataOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEndTime in interface OperationMetadataOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTime in interface OperationMetadataOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public OperationMetadata.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEndTime

        public OperationMetadata.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEndTime

        public OperationMetadata.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEndTime

        public OperationMetadata.Builder clearEndTime()
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Output only. Time when the operation completed.
         
        .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEndTimeOrBuilder in interface OperationMetadataOrBuilder
      • getTarget

        public String getTarget()
         Output only. Name of the resource that this operation is acting on e.g.
         projects/my-project/locations/us-central1/connectors/v1.
         
        string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getTarget in interface OperationMetadataOrBuilder
        Returns:
        The target.
      • getTargetBytes

        public com.google.protobuf.ByteString getTargetBytes()
         Output only. Name of the resource that this operation is acting on e.g.
         projects/my-project/locations/us-central1/connectors/v1.
         
        string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getTargetBytes in interface OperationMetadataOrBuilder
        Returns:
        The bytes for target.
      • setTarget

        public OperationMetadata.Builder setTarget​(String value)
         Output only. Name of the resource that this operation is acting on e.g.
         projects/my-project/locations/us-central1/connectors/v1.
         
        string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The target to set.
        Returns:
        This builder for chaining.
      • clearTarget

        public OperationMetadata.Builder clearTarget()
         Output only. Name of the resource that this operation is acting on e.g.
         projects/my-project/locations/us-central1/connectors/v1.
         
        string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setTargetBytes

        public OperationMetadata.Builder setTargetBytes​(com.google.protobuf.ByteString value)
         Output only. Name of the resource that this operation is acting on e.g.
         projects/my-project/locations/us-central1/connectors/v1.
         
        string target = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for target to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final OperationMetadata.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<OperationMetadata.Builder>
      • mergeUnknownFields

        public final OperationMetadata.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<OperationMetadata.Builder>