Class CopyLogEntriesMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CopyLogEntriesMetadata.Builder>
com.google.logging.v2.CopyLogEntriesMetadata.Builder
All Implemented Interfaces:
CopyLogEntriesMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CopyLogEntriesMetadata

public static final class CopyLogEntriesMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CopyLogEntriesMetadata.Builder> implements CopyLogEntriesMetadataOrBuilder
 Metadata for CopyLogEntries long running operations.
 
Protobuf type google.logging.v2.CopyLogEntriesMetadata
  • Method Details

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

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

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

      public CopyLogEntriesMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<CopyLogEntriesMetadata.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public CopyLogEntriesMetadata.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<CopyLogEntriesMetadata.Builder>
      Throws:
      IOException
    • hasStartTime

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

      public com.google.protobuf.Timestamp getStartTime()
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTime in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public CopyLogEntriesMetadata.Builder setStartTime(com.google.protobuf.Timestamp value)
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • setStartTime

      public CopyLogEntriesMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • mergeStartTime

      public CopyLogEntriesMetadata.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • clearStartTime

      public CopyLogEntriesMetadata.Builder clearStartTime()
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       The create time of an operation.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface CopyLogEntriesMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      hasEndTime in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTime in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public CopyLogEntriesMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
    • setEndTime

      public CopyLogEntriesMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
    • mergeEndTime

      public CopyLogEntriesMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
    • clearEndTime

      public CopyLogEntriesMetadata.Builder clearEndTime()
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The end time of an operation.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTimeOrBuilder in interface CopyLogEntriesMetadataOrBuilder
    • getStateValue

      public int getStateValue()
       State of an operation.
       
      .google.logging.v2.OperationState state = 3;
      Specified by:
      getStateValue in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public CopyLogEntriesMetadata.Builder setStateValue(int value)
       State of an operation.
       
      .google.logging.v2.OperationState state = 3;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public OperationState getState()
       State of an operation.
       
      .google.logging.v2.OperationState state = 3;
      Specified by:
      getState in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The state.
    • setState

       State of an operation.
       
      .google.logging.v2.OperationState state = 3;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public CopyLogEntriesMetadata.Builder clearState()
       State of an operation.
       
      .google.logging.v2.OperationState state = 3;
      Returns:
      This builder for chaining.
    • getCancellationRequested

      public boolean getCancellationRequested()
       Identifies whether the user has requested cancellation of the operation.
       
      bool cancellation_requested = 4;
      Specified by:
      getCancellationRequested in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The cancellationRequested.
    • setCancellationRequested

      public CopyLogEntriesMetadata.Builder setCancellationRequested(boolean value)
       Identifies whether the user has requested cancellation of the operation.
       
      bool cancellation_requested = 4;
      Parameters:
      value - The cancellationRequested to set.
      Returns:
      This builder for chaining.
    • clearCancellationRequested

      public CopyLogEntriesMetadata.Builder clearCancellationRequested()
       Identifies whether the user has requested cancellation of the operation.
       
      bool cancellation_requested = 4;
      Returns:
      This builder for chaining.
    • hasRequest

      public boolean hasRequest()
       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
      Specified by:
      hasRequest in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      Whether the request field is set.
    • getRequest

      public CopyLogEntriesRequest getRequest()
       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
      Specified by:
      getRequest in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The request.
    • setRequest

       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
    • setRequest

       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
    • mergeRequest

       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
    • clearRequest

      public CopyLogEntriesMetadata.Builder clearRequest()
       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
    • getRequestBuilder

      public CopyLogEntriesRequest.Builder getRequestBuilder()
       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
    • getRequestOrBuilder

      public CopyLogEntriesRequestOrBuilder getRequestOrBuilder()
       CopyLogEntries RPC request.
       
      .google.logging.v2.CopyLogEntriesRequest request = 5;
      Specified by:
      getRequestOrBuilder in interface CopyLogEntriesMetadataOrBuilder
    • getProgress

      public int getProgress()
       Estimated progress of the operation (0 - 100%).
       
      int32 progress = 6;
      Specified by:
      getProgress in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The progress.
    • setProgress

      public CopyLogEntriesMetadata.Builder setProgress(int value)
       Estimated progress of the operation (0 - 100%).
       
      int32 progress = 6;
      Parameters:
      value - The progress to set.
      Returns:
      This builder for chaining.
    • clearProgress

      public CopyLogEntriesMetadata.Builder clearProgress()
       Estimated progress of the operation (0 - 100%).
       
      int32 progress = 6;
      Returns:
      This builder for chaining.
    • getWriterIdentity

      public String getWriterIdentity()
       The IAM identity of a service account that must be granted access to the
       destination.
      
       If the service account is not granted permission to the destination within
       an hour, the operation will be cancelled.
      
       For example: `"serviceAccount:foo@bar.com"`
       
      string writer_identity = 7;
      Specified by:
      getWriterIdentity in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The writerIdentity.
    • getWriterIdentityBytes

      public com.google.protobuf.ByteString getWriterIdentityBytes()
       The IAM identity of a service account that must be granted access to the
       destination.
      
       If the service account is not granted permission to the destination within
       an hour, the operation will be cancelled.
      
       For example: `"serviceAccount:foo@bar.com"`
       
      string writer_identity = 7;
      Specified by:
      getWriterIdentityBytes in interface CopyLogEntriesMetadataOrBuilder
      Returns:
      The bytes for writerIdentity.
    • setWriterIdentity

      public CopyLogEntriesMetadata.Builder setWriterIdentity(String value)
       The IAM identity of a service account that must be granted access to the
       destination.
      
       If the service account is not granted permission to the destination within
       an hour, the operation will be cancelled.
      
       For example: `"serviceAccount:foo@bar.com"`
       
      string writer_identity = 7;
      Parameters:
      value - The writerIdentity to set.
      Returns:
      This builder for chaining.
    • clearWriterIdentity

      public CopyLogEntriesMetadata.Builder clearWriterIdentity()
       The IAM identity of a service account that must be granted access to the
       destination.
      
       If the service account is not granted permission to the destination within
       an hour, the operation will be cancelled.
      
       For example: `"serviceAccount:foo@bar.com"`
       
      string writer_identity = 7;
      Returns:
      This builder for chaining.
    • setWriterIdentityBytes

      public CopyLogEntriesMetadata.Builder setWriterIdentityBytes(com.google.protobuf.ByteString value)
       The IAM identity of a service account that must be granted access to the
       destination.
      
       If the service account is not granted permission to the destination within
       an hour, the operation will be cancelled.
      
       For example: `"serviceAccount:foo@bar.com"`
       
      string writer_identity = 7;
      Parameters:
      value - The bytes for writerIdentity to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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