Class UploadFileInfo.Builder (0.36.0)

public static final class UploadFileInfo.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UploadFileInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UploadFileInfo.Builder
Overrides

build()

public UploadFileInfo build()
Returns
Type Description
UploadFileInfo

buildPartial()

public UploadFileInfo buildPartial()
Returns
Type Description
UploadFileInfo

clear()

public UploadFileInfo.Builder clear()
Returns
Type Description
UploadFileInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UploadFileInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UploadFileInfo.Builder
Overrides

clearHeaders()

public UploadFileInfo.Builder clearHeaders()
Returns
Type Description
UploadFileInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UploadFileInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UploadFileInfo.Builder
Overrides

clearSignedUri()

public UploadFileInfo.Builder clearSignedUri()

Output only. Upload URI for the file.

string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UploadFileInfo.Builder

This builder for chaining.

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];

Returns
Type Description
UploadFileInfo.Builder

clone()

public UploadFileInfo.Builder clone()
Returns
Type Description
UploadFileInfo.Builder
Overrides

containsHeaders(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public UploadFileInfo getDefaultInstanceForType()
Returns
Type Description
UploadFileInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHeaders() (deprecated)

public Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
Type Description
Map<String,String>

getHeadersCount()

public int getHeadersCount()

Output only. The headers that were used to sign the URI.

map<string, string> headers = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

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];

Returns
Type Description
Map<String,String>

getHeadersOrDefault(String key, String defaultValue)

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];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getHeadersOrThrow(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableHeaders() (deprecated)

public Map<String,String> getMutableHeaders()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getSignedUri()

public String getSignedUri()

Output only. Upload URI for the file.

string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The signedUri.

getSignedUriBytes()

public ByteString getSignedUriBytes()

Output only. Upload URI for the file.

string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for signedUri.

getUriExpirationTime()

public Timestamp getUriExpirationTime()

Output only. Expiration time of the upload URI.

.google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The uriExpirationTime.

getUriExpirationTimeBuilder()

public Timestamp.Builder getUriExpirationTimeBuilder()

Output only. Expiration time of the upload URI.

.google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUriExpirationTimeOrBuilder()

public TimestampOrBuilder getUriExpirationTimeOrBuilder()

Output only. Expiration time of the upload URI.

.google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

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];

Returns
Type Description
boolean

Whether the uriExpirationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UploadFileInfo other)

public UploadFileInfo.Builder mergeFrom(UploadFileInfo other)
Parameter
Name Description
other UploadFileInfo
Returns
Type Description
UploadFileInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UploadFileInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UploadFileInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UploadFileInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UploadFileInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UploadFileInfo.Builder
Overrides

mergeUriExpirationTime(Timestamp value)

public UploadFileInfo.Builder mergeUriExpirationTime(Timestamp value)

Output only. Expiration time of the upload URI.

.google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
UploadFileInfo.Builder

putAllHeaders(Map<String,String> values)

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];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
UploadFileInfo.Builder

putHeaders(String key, String value)

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];

Parameters
Name Description
key String
value String
Returns
Type Description
UploadFileInfo.Builder

removeHeaders(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
UploadFileInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UploadFileInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UploadFileInfo.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UploadFileInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UploadFileInfo.Builder
Overrides

setSignedUri(String value)

public UploadFileInfo.Builder setSignedUri(String value)

Output only. Upload URI for the file.

string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The signedUri to set.

Returns
Type Description
UploadFileInfo.Builder

This builder for chaining.

setSignedUriBytes(ByteString value)

public UploadFileInfo.Builder setSignedUriBytes(ByteString value)

Output only. Upload URI for the file.

string signed_uri = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for signedUri to set.

Returns
Type Description
UploadFileInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UploadFileInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UploadFileInfo.Builder
Overrides

setUriExpirationTime(Timestamp value)

public UploadFileInfo.Builder setUriExpirationTime(Timestamp value)

Output only. Expiration time of the upload URI.

.google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
UploadFileInfo.Builder

setUriExpirationTime(Timestamp.Builder builderForValue)

public UploadFileInfo.Builder setUriExpirationTime(Timestamp.Builder builderForValue)

Output only. Expiration time of the upload URI.

.google.protobuf.Timestamp uri_expiration_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UploadFileInfo.Builder