Class UploadFileInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UploadFileInfo.Builder>
com.google.cloud.migrationcenter.v1.UploadFileInfo.Builder
All Implemented Interfaces:
UploadFileInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UploadFileInfo

public static final class UploadFileInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<UploadFileInfo.Builder> implements UploadFileInfoOrBuilder
 A resource that contains a URI to which a data file can be uploaded.
 
Protobuf type google.cloud.migrationcenter.v1.UploadFileInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UploadFileInfo.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<UploadFileInfo.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<UploadFileInfo.Builder>
    • clear

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

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

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

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

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

      public UploadFileInfo.Builder mergeFrom(UploadFileInfo other)
    • isInitialized

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

      public UploadFileInfo.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<UploadFileInfo.Builder>
      Throws:
      IOException
    • getSignedUri

      public String getSignedUri()
       Output only. Upload URI for the file.
       
      string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSignedUri in interface UploadFileInfoOrBuilder
      Returns:
      The signedUri.
    • getSignedUriBytes

      public com.google.protobuf.ByteString getSignedUriBytes()
       Output only. Upload URI for the file.
       
      string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSignedUriBytes in interface UploadFileInfoOrBuilder
      Returns:
      The bytes for signedUri.
    • setSignedUri

      public UploadFileInfo.Builder setSignedUri(String value)
       Output only. Upload URI for the file.
       
      string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The signedUri to set.
      Returns:
      This builder for chaining.
    • clearSignedUri

      public UploadFileInfo.Builder clearSignedUri()
       Output only. Upload URI for the file.
       
      string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setSignedUriBytes

      public UploadFileInfo.Builder setSignedUriBytes(com.google.protobuf.ByteString value)
       Output only. Upload URI for the file.
       
      string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for signedUri to set.
      Returns:
      This builder for chaining.
    • getHeadersCount

      public int getHeadersCount()
      Description copied from interface: UploadFileInfoOrBuilder
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHeadersCount in interface UploadFileInfoOrBuilder
    • containsHeaders

      public boolean containsHeaders(String key)
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsHeaders in interface UploadFileInfoOrBuilder
    • getHeaders

      @Deprecated public Map<String,String> getHeaders()
      Deprecated.
      Use getHeadersMap() instead.
      Specified by:
      getHeaders in interface UploadFileInfoOrBuilder
    • getHeadersMap

      public Map<String,String> getHeadersMap()
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHeadersMap in interface UploadFileInfoOrBuilder
    • getHeadersOrDefault

      public String getHeadersOrDefault(String key, String defaultValue)
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHeadersOrDefault in interface UploadFileInfoOrBuilder
    • getHeadersOrThrow

      public String getHeadersOrThrow(String key)
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHeadersOrThrow in interface UploadFileInfoOrBuilder
    • clearHeaders

      public UploadFileInfo.Builder clearHeaders()
    • removeHeaders

      public UploadFileInfo.Builder removeHeaders(String key)
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableHeaders

      @Deprecated public Map<String,String> getMutableHeaders()
      Deprecated.
      Use alternate mutation accessors instead.
    • putHeaders

      public UploadFileInfo.Builder putHeaders(String key, String value)
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllHeaders

      public UploadFileInfo.Builder putAllHeaders(Map<String,String> values)
       Output only. The headers that were used to sign the URI.
       
      map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasUriExpirationTime

      public boolean hasUriExpirationTime()
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUriExpirationTime in interface UploadFileInfoOrBuilder
      Returns:
      Whether the uriExpirationTime field is set.
    • getUriExpirationTime

      public com.google.protobuf.Timestamp getUriExpirationTime()
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUriExpirationTime in interface UploadFileInfoOrBuilder
      Returns:
      The uriExpirationTime.
    • setUriExpirationTime

      public UploadFileInfo.Builder setUriExpirationTime(com.google.protobuf.Timestamp value)
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUriExpirationTime

      public UploadFileInfo.Builder setUriExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUriExpirationTime

      public UploadFileInfo.Builder mergeUriExpirationTime(com.google.protobuf.Timestamp value)
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUriExpirationTime

      public UploadFileInfo.Builder clearUriExpirationTime()
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUriExpirationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUriExpirationTimeBuilder()
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUriExpirationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUriExpirationTimeOrBuilder()
       Output only. Expiration time of the upload URI.
       
      .google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUriExpirationTimeOrBuilder in interface UploadFileInfoOrBuilder