public static final class FileInputSource.Builder extends GeneratedMessageV3.Builder<FileInputSource.Builder> implements FileInputSourceOrBuilder
An inlined file.
Protobuf type google.cloud.translation.v3.FileInputSource
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public FileInputSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public FileInputSource build()
public FileInputSource buildPartial()
public FileInputSource.Builder clear()
Overrides
clearContent()
public FileInputSource.Builder clearContent()
Required. The file's byte contents.
bytes content = 2 [(.google.api.field_behavior) = REQUIRED];
public FileInputSource.Builder clearDisplayName()
Required. The file's display name.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
public FileInputSource.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public FileInputSource.Builder clearMimeType()
Required. The file's mime type.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
public FileInputSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public FileInputSource.Builder clone()
Overrides
getContent()
public ByteString getContent()
Required. The file's byte contents.
bytes content = 2 [(.google.api.field_behavior) = REQUIRED];
public FileInputSource getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getDisplayName()
Required. The file's display name.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The displayName.
|
public ByteString getDisplayNameBytes()
Required. The file's display name.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for displayName.
|
public String getMimeType()
Required. The file's mime type.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
String | The mimeType.
|
public ByteString getMimeTypeBytes()
Required. The file's mime type.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
ByteString | The bytes for mimeType.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public FileInputSource.Builder mergeFrom(FileInputSource other)
public FileInputSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public FileInputSource.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final FileInputSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setContent(ByteString value)
public FileInputSource.Builder setContent(ByteString value)
Required. The file's byte contents.
bytes content = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The content to set.
|
public FileInputSource.Builder setDisplayName(String value)
Required. The file's display name.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The displayName to set.
|
public FileInputSource.Builder setDisplayNameBytes(ByteString value)
Required. The file's display name.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for displayName to set.
|
public FileInputSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public FileInputSource.Builder setMimeType(String value)
Required. The file's mime type.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | String
The mimeType to set.
|
public FileInputSource.Builder setMimeTypeBytes(ByteString value)
Required. The file's mime type.
string mime_type = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for mimeType to set.
|
public FileInputSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final FileInputSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides