Class TransferTypes.ErrorLogEntry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransferTypes.ErrorLogEntry.Builder>
com.google.storagetransfer.v1.proto.TransferTypes.ErrorLogEntry.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransferTypes.ErrorLogEntryOrBuilder, Cloneable
Enclosing class:
TransferTypes.ErrorLogEntry

public static final class TransferTypes.ErrorLogEntry.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransferTypes.ErrorLogEntry.Builder> implements TransferTypes.ErrorLogEntryOrBuilder
 An entry describing an error that has occurred.
 
Protobuf type google.storagetransfer.v1.ErrorLogEntry
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransferTypes.ErrorLogEntry.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.GeneratedMessage.Builder<TransferTypes.ErrorLogEntry.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.GeneratedMessage.Builder<TransferTypes.ErrorLogEntry.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransferTypes.ErrorLogEntry buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public TransferTypes.ErrorLogEntry.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<TransferTypes.ErrorLogEntry.Builder>
      Throws:
      IOException
    • getUrl

      public String getUrl()
       Required. A URL that refers to the target (a data source, a data sink,
       or an object) with which the error is associated.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrl in interface TransferTypes.ErrorLogEntryOrBuilder
      Returns:
      The url.
    • getUrlBytes

      public com.google.protobuf.ByteString getUrlBytes()
       Required. A URL that refers to the target (a data source, a data sink,
       or an object) with which the error is associated.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUrlBytes in interface TransferTypes.ErrorLogEntryOrBuilder
      Returns:
      The bytes for url.
    • setUrl

       Required. A URL that refers to the target (a data source, a data sink,
       or an object) with which the error is associated.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The url to set.
      Returns:
      This builder for chaining.
    • clearUrl

       Required. A URL that refers to the target (a data source, a data sink,
       or an object) with which the error is associated.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUrlBytes

      public TransferTypes.ErrorLogEntry.Builder setUrlBytes(com.google.protobuf.ByteString value)
       Required. A URL that refers to the target (a data source, a data sink,
       or an object) with which the error is associated.
       
      string url = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for url to set.
      Returns:
      This builder for chaining.
    • getErrorDetailsList

      public com.google.protobuf.ProtocolStringList getErrorDetailsList()
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Specified by:
      getErrorDetailsList in interface TransferTypes.ErrorLogEntryOrBuilder
      Returns:
      A list containing the errorDetails.
    • getErrorDetailsCount

      public int getErrorDetailsCount()
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Specified by:
      getErrorDetailsCount in interface TransferTypes.ErrorLogEntryOrBuilder
      Returns:
      The count of errorDetails.
    • getErrorDetails

      public String getErrorDetails(int index)
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Specified by:
      getErrorDetails in interface TransferTypes.ErrorLogEntryOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The errorDetails at the given index.
    • getErrorDetailsBytes

      public com.google.protobuf.ByteString getErrorDetailsBytes(int index)
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Specified by:
      getErrorDetailsBytes in interface TransferTypes.ErrorLogEntryOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the errorDetails at the given index.
    • setErrorDetails

      public TransferTypes.ErrorLogEntry.Builder setErrorDetails(int index, String value)
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Parameters:
      index - The index to set the value at.
      value - The errorDetails to set.
      Returns:
      This builder for chaining.
    • addErrorDetails

      public TransferTypes.ErrorLogEntry.Builder addErrorDetails(String value)
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Parameters:
      value - The errorDetails to add.
      Returns:
      This builder for chaining.
    • addAllErrorDetails

      public TransferTypes.ErrorLogEntry.Builder addAllErrorDetails(Iterable<String> values)
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Parameters:
      values - The errorDetails to add.
      Returns:
      This builder for chaining.
    • clearErrorDetails

      public TransferTypes.ErrorLogEntry.Builder clearErrorDetails()
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Returns:
      This builder for chaining.
    • addErrorDetailsBytes

      public TransferTypes.ErrorLogEntry.Builder addErrorDetailsBytes(com.google.protobuf.ByteString value)
       A list of messages that carry the error details.
       
      repeated string error_details = 3;
      Parameters:
      value - The bytes of the errorDetails to add.
      Returns:
      This builder for chaining.