public static final class ApiConfig.File.Builder extends GeneratedMessage.Builder<ApiConfig.File.Builder> implements ApiConfig.FileOrBuilderA lightweight description of a file.
Protobuf type google.cloud.apigateway.v1.ApiConfig.File
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ApiConfig.File.BuilderImplements
ApiConfig.FileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ApiConfig.File build()| Returns | |
|---|---|
| Type | Description |
ApiConfig.File |
|
buildPartial()
public ApiConfig.File buildPartial()| Returns | |
|---|---|
| Type | Description |
ApiConfig.File |
|
clear()
public ApiConfig.File.Builder clear()| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
|
clearContents()
public ApiConfig.File.Builder clearContents()The bytes that constitute the file.
bytes contents = 2;
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
This builder for chaining. |
clearPath()
public ApiConfig.File.Builder clearPath()The file path (full or relative path). This is typically the path of the file when it is uploaded.
string path = 1;
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
This builder for chaining. |
getContents()
public ByteString getContents()The bytes that constitute the file.
bytes contents = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The contents. |
getDefaultInstanceForType()
public ApiConfig.File getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ApiConfig.File |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPath()
public String getPath()The file path (full or relative path). This is typically the path of the file when it is uploaded.
string path = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The path. |
getPathBytes()
public ByteString getPathBytes()The file path (full or relative path). This is typically the path of the file when it is uploaded.
string path = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for path. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ApiConfig.File other)
public ApiConfig.File.Builder mergeFrom(ApiConfig.File other)| Parameter | |
|---|---|
| Name | Description |
other |
ApiConfig.File |
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ApiConfig.File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ApiConfig.File.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
|
setContents(ByteString value)
public ApiConfig.File.Builder setContents(ByteString value)The bytes that constitute the file.
bytes contents = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe contents to set. |
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
This builder for chaining. |
setPath(String value)
public ApiConfig.File.Builder setPath(String value)The file path (full or relative path). This is typically the path of the file when it is uploaded.
string path = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe path to set. |
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
This builder for chaining. |
setPathBytes(ByteString value)
public ApiConfig.File.Builder setPathBytes(ByteString value)The file path (full or relative path). This is typically the path of the file when it is uploaded.
string path = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for path to set. |
| Returns | |
|---|---|
| Type | Description |
ApiConfig.File.Builder |
This builder for chaining. |