public static final class ApiConfig.File.Builder extends GeneratedMessageV3.Builder<ApiConfig.File.Builder> implements ApiConfig.FileOrBuilder
A lightweight description of a file.
Protobuf type google.cloud.apigateway.v1.ApiConfig.File
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ApiConfig.File.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ApiConfig.File build()
Returns
buildPartial()
public ApiConfig.File buildPartial()
Returns
clear()
public ApiConfig.File.Builder clear()
Returns
Overrides
clearContents()
public ApiConfig.File.Builder clearContents()
The bytes that constitute the file.
bytes contents = 2;
Returns
clearField(Descriptors.FieldDescriptor field)
public ApiConfig.File.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ApiConfig.File.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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
clone()
public ApiConfig.File.Builder clone()
Returns
Overrides
getContents()
public ByteString getContents()
The bytes that constitute the file.
bytes contents = 2;
Returns
getDefaultInstanceForType()
public ApiConfig.File getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ApiConfig.File other)
public ApiConfig.File.Builder mergeFrom(ApiConfig.File other)
Parameter
Returns
public ApiConfig.File.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ApiConfig.File.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ApiConfig.File.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setContents(ByteString value)
public ApiConfig.File.Builder setContents(ByteString value)
The bytes that constitute the file.
bytes contents = 2;
Parameter
Name | Description |
value | ByteString
The contents to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ApiConfig.File.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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 | String
The path to set.
|
Returns
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 | ByteString
The bytes for path to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ApiConfig.File.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ApiConfig.File.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides