Class UploadFileInfo.Builder (0.1.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UploadFileInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UploadFileInfo.Builder
Overrides

build()

public UploadFileInfo build()
Returns
TypeDescription
UploadFileInfo

buildPartial()

public UploadFileInfo buildPartial()
Returns
TypeDescription
UploadFileInfo

clear()

public UploadFileInfo.Builder clear()
Returns
TypeDescription
UploadFileInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UploadFileInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UploadFileInfo.Builder
Overrides

clearHeaders()

public UploadFileInfo.Builder clearHeaders()
Returns
TypeDescription
UploadFileInfo.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UploadFileInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
UploadFileInfo.Builder

clone()

public UploadFileInfo.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public UploadFileInfo getDefaultInstanceForType()
Returns
TypeDescription
UploadFileInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaders()

public Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableHeaders()

public Map<String,String> getMutableHeaders()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the uriExpirationTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UploadFileInfo other)

public UploadFileInfo.Builder mergeFrom(UploadFileInfo other)
Parameter
NameDescription
otherUploadFileInfo
Returns
TypeDescription
UploadFileInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UploadFileInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UploadFileInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UploadFileInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UploadFileInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UploadFileInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
UploadFileInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UploadFileInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UploadFileInfo.Builder
Overrides

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

public UploadFileInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The signedUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for signedUri to set.

Returns
TypeDescription
UploadFileInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UploadFileInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
UploadFileInfo.Builder