Class FileCharacteristics.Builder (0.79.0)

public static final class FileCharacteristics.Builder extends GeneratedMessage.Builder<FileCharacteristics.Builder> implements FileCharacteristicsOrBuilder

Caracteristics of other file types.

Protobuf type google.cloud.discoveryengine.v1alpha.FileCharacteristics

Static Methods

getDescriptor()

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

Methods

build()

public FileCharacteristics build()
Returns
Type Description
FileCharacteristics

buildPartial()

public FileCharacteristics buildPartial()
Returns
Type Description
FileCharacteristics

clear()

public FileCharacteristics.Builder clear()
Returns
Type Description
FileCharacteristics.Builder
Overrides

clearCharacteristics()

public FileCharacteristics.Builder clearCharacteristics()
Returns
Type Description
FileCharacteristics.Builder

containsCharacteristics(String key)

public boolean containsCharacteristics(String key)

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCharacteristics() (deprecated)

public Map<String,String> getCharacteristics()
Returns
Type Description
Map<String,String>

getCharacteristicsCount()

public int getCharacteristicsCount()

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getCharacteristicsMap()

public Map<String,String> getCharacteristicsMap()

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,String>

getCharacteristicsOrDefault(String key, String defaultValue)

public String getCharacteristicsOrDefault(String key, String defaultValue)

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getCharacteristicsOrThrow(String key)

public String getCharacteristicsOrThrow(String key)

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public FileCharacteristics getDefaultInstanceForType()
Returns
Type Description
FileCharacteristics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableCharacteristics() (deprecated)

public Map<String,String> getMutableCharacteristics()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

internalGetFieldAccessorTable()

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

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FileCharacteristics other)

public FileCharacteristics.Builder mergeFrom(FileCharacteristics other)
Parameter
Name Description
other FileCharacteristics
Returns
Type Description
FileCharacteristics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FileCharacteristics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileCharacteristics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FileCharacteristics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FileCharacteristics.Builder
Overrides

putAllCharacteristics(Map<String,String> values)

public FileCharacteristics.Builder putAllCharacteristics(Map<String,String> values)

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
FileCharacteristics.Builder

putCharacteristics(String key, String value)

public FileCharacteristics.Builder putCharacteristics(String key, String value)

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value String
Returns
Type Description
FileCharacteristics.Builder

removeCharacteristics(String key)

public FileCharacteristics.Builder removeCharacteristics(String key)

Output only. Generic map of characteristics.

map<string, string> characteristics = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
FileCharacteristics.Builder