Class GcsInputSource (2.39.0)

public final class GcsInputSource extends GeneratedMessageV3 implements GcsInputSourceOrBuilder

The Google Cloud Storage location for the input content.

Protobuf type google.cloud.translation.v3.GcsInputSource

Static Fields

INPUT_URI_FIELD_NUMBER

public static final int INPUT_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GcsInputSource getDefaultInstance()
Returns
TypeDescription
GcsInputSource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static GcsInputSource.Builder newBuilder()
Returns
TypeDescription
GcsInputSource.Builder

newBuilder(GcsInputSource prototype)

public static GcsInputSource.Builder newBuilder(GcsInputSource prototype)
Parameter
NameDescription
prototypeGcsInputSource
Returns
TypeDescription
GcsInputSource.Builder

parseDelimitedFrom(InputStream input)

public static GcsInputSource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcsInputSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GcsInputSource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GcsInputSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GcsInputSource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GcsInputSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GcsInputSource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GcsInputSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GcsInputSource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GcsInputSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GcsInputSource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GcsInputSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GcsInputSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GcsInputSource> parser()
Returns
TypeDescription
Parser<GcsInputSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public GcsInputSource getDefaultInstanceForType()
Returns
TypeDescription
GcsInputSource

getInputUri()

public String getInputUri()

Required. Source data URI. For example, gs://my_bucket/my_object.

string input_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The inputUri.

getInputUriBytes()

public ByteString getInputUriBytes()

Required. Source data URI. For example, gs://my_bucket/my_object.

string input_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for inputUri.

getParserForType()

public Parser<GcsInputSource> getParserForType()
Returns
TypeDescription
Parser<GcsInputSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GcsInputSource.Builder newBuilderForType()
Returns
TypeDescription
GcsInputSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GcsInputSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GcsInputSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GcsInputSource.Builder toBuilder()
Returns
TypeDescription
GcsInputSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException