Class UploadFileInfo (0.26.0)

public final class UploadFileInfo extends GeneratedMessageV3 implements UploadFileInfoOrBuilder

A resource that contains a URI to which a data file can be uploaded.

Protobuf type google.cloud.migrationcenter.v1.UploadFileInfo

Static Fields

HEADERS_FIELD_NUMBER

public static final int HEADERS_FIELD_NUMBER
Field Value
Type Description
int

SIGNED_URI_FIELD_NUMBER

public static final int SIGNED_URI_FIELD_NUMBER
Field Value
Type Description
int

URI_EXPIRATION_TIME_FIELD_NUMBER

public static final int URI_EXPIRATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UploadFileInfo getDefaultInstance()
Returns
Type Description
UploadFileInfo

getDescriptor()

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

newBuilder()

public static UploadFileInfo.Builder newBuilder()
Returns
Type Description
UploadFileInfo.Builder

newBuilder(UploadFileInfo prototype)

public static UploadFileInfo.Builder newBuilder(UploadFileInfo prototype)
Parameter
Name Description
prototype UploadFileInfo
Returns
Type Description
UploadFileInfo.Builder

parseDelimitedFrom(InputStream input)

public static UploadFileInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UploadFileInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UploadFileInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UploadFileInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UploadFileInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UploadFileInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UploadFileInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UploadFileInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UploadFileInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UploadFileInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UploadFileInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UploadFileInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UploadFileInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UploadFileInfo> parser()
Returns
Type Description
Parser<UploadFileInfo>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public UploadFileInfo getDefaultInstanceForType()
Returns
Type Description
UploadFileInfo

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

getParserForType()

public Parser<UploadFileInfo> getParserForType()
Returns
Type Description
Parser<UploadFileInfo>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UploadFileInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UploadFileInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException