Class ResourceErrorDetail.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ResourceErrorDetail.Builder>
com.google.cloud.bigquery.migration.v2.ResourceErrorDetail.Builder
All Implemented Interfaces:
ResourceErrorDetailOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ResourceErrorDetail

public static final class ResourceErrorDetail.Builder extends com.google.protobuf.GeneratedMessage.Builder<ResourceErrorDetail.Builder> implements ResourceErrorDetailOrBuilder
 Provides details for errors and the corresponding resources.
 
Protobuf type google.cloud.bigquery.migration.v2.ResourceErrorDetail
  • 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<ResourceErrorDetail.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<ResourceErrorDetail.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<ResourceErrorDetail.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ResourceErrorDetail.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<ResourceErrorDetail.Builder>
      Throws:
      IOException
    • hasResourceInfo

      public boolean hasResourceInfo()
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasResourceInfo in interface ResourceErrorDetailOrBuilder
      Returns:
      Whether the resourceInfo field is set.
    • getResourceInfo

      public ResourceInfo getResourceInfo()
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceInfo in interface ResourceErrorDetailOrBuilder
      Returns:
      The resourceInfo.
    • setResourceInfo

      public ResourceErrorDetail.Builder setResourceInfo(ResourceInfo value)
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
    • setResourceInfo

      public ResourceErrorDetail.Builder setResourceInfo(ResourceInfo.Builder builderForValue)
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeResourceInfo

      public ResourceErrorDetail.Builder mergeResourceInfo(ResourceInfo value)
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearResourceInfo

      public ResourceErrorDetail.Builder clearResourceInfo()
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
    • getResourceInfoBuilder

      public ResourceInfo.Builder getResourceInfoBuilder()
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
    • getResourceInfoOrBuilder

      public ResourceInfoOrBuilder getResourceInfoOrBuilder()
       Required. Information about the resource where the error is located.
       
      .google.rpc.ResourceInfo resource_info = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getResourceInfoOrBuilder in interface ResourceErrorDetailOrBuilder
    • getErrorDetailsList

      public List<ErrorDetail> getErrorDetailsList()
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getErrorDetailsList in interface ResourceErrorDetailOrBuilder
    • getErrorDetailsCount

      public int getErrorDetailsCount()
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getErrorDetailsCount in interface ResourceErrorDetailOrBuilder
    • getErrorDetails

      public ErrorDetail getErrorDetails(int index)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getErrorDetails in interface ResourceErrorDetailOrBuilder
    • setErrorDetails

      public ResourceErrorDetail.Builder setErrorDetails(int index, ErrorDetail value)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • setErrorDetails

      public ResourceErrorDetail.Builder setErrorDetails(int index, ErrorDetail.Builder builderForValue)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • addErrorDetails

      public ResourceErrorDetail.Builder addErrorDetails(ErrorDetail value)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • addErrorDetails

      public ResourceErrorDetail.Builder addErrorDetails(int index, ErrorDetail value)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • addErrorDetails

      public ResourceErrorDetail.Builder addErrorDetails(ErrorDetail.Builder builderForValue)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • addErrorDetails

      public ResourceErrorDetail.Builder addErrorDetails(int index, ErrorDetail.Builder builderForValue)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllErrorDetails

      public ResourceErrorDetail.Builder addAllErrorDetails(Iterable<? extends ErrorDetail> values)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearErrorDetails

      public ResourceErrorDetail.Builder clearErrorDetails()
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeErrorDetails

      public ResourceErrorDetail.Builder removeErrorDetails(int index)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • getErrorDetailsBuilder

      public ErrorDetail.Builder getErrorDetailsBuilder(int index)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • getErrorDetailsOrBuilder

      public ErrorDetailOrBuilder getErrorDetailsOrBuilder(int index)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getErrorDetailsOrBuilder in interface ResourceErrorDetailOrBuilder
    • getErrorDetailsOrBuilderList

      public List<? extends ErrorDetailOrBuilder> getErrorDetailsOrBuilderList()
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getErrorDetailsOrBuilderList in interface ResourceErrorDetailOrBuilder
    • addErrorDetailsBuilder

      public ErrorDetail.Builder addErrorDetailsBuilder()
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • addErrorDetailsBuilder

      public ErrorDetail.Builder addErrorDetailsBuilder(int index)
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • getErrorDetailsBuilderList

      public List<ErrorDetail.Builder> getErrorDetailsBuilderList()
       Required. The error details for the resource.
       
      repeated .google.cloud.bigquery.migration.v2.ErrorDetail error_details = 2 [(.google.api.field_behavior) = REQUIRED];
    • getErrorCount

      public int getErrorCount()
       Required. How many errors there are in total for the resource. Truncation
       can be indicated by having an `error_count` that is higher than the size of
       `error_details`.
       
      int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getErrorCount in interface ResourceErrorDetailOrBuilder
      Returns:
      The errorCount.
    • setErrorCount

      public ResourceErrorDetail.Builder setErrorCount(int value)
       Required. How many errors there are in total for the resource. Truncation
       can be indicated by having an `error_count` that is higher than the size of
       `error_details`.
       
      int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The errorCount to set.
      Returns:
      This builder for chaining.
    • clearErrorCount

      public ResourceErrorDetail.Builder clearErrorCount()
       Required. How many errors there are in total for the resource. Truncation
       can be indicated by having an `error_count` that is higher than the size of
       `error_details`.
       
      int32 error_count = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.