Class FieldInfo.Builder (2.28.0)

public static final class FieldInfo.Builder extends GeneratedMessageV3.Builder<FieldInfo.Builder> implements FieldInfoOrBuilder

Rich semantic information of an API field beyond basic typing.

Protobuf type google.api.FieldInfo

Implements

FieldInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FieldInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldInfo.Builder
Overrides

build()

public FieldInfo build()
Returns
TypeDescription
FieldInfo

buildPartial()

public FieldInfo buildPartial()
Returns
TypeDescription
FieldInfo

clear()

public FieldInfo.Builder clear()
Returns
TypeDescription
FieldInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FieldInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FieldInfo.Builder
Overrides

clearFormat()

public FieldInfo.Builder clearFormat()

The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.

.google.api.FieldInfo.Format format = 1;

Returns
TypeDescription
FieldInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public FieldInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FieldInfo.Builder
Overrides

clone()

public FieldInfo.Builder clone()
Returns
TypeDescription
FieldInfo.Builder
Overrides

getDefaultInstanceForType()

public FieldInfo getDefaultInstanceForType()
Returns
TypeDescription
FieldInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFormat()

public FieldInfo.Format getFormat()

The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.

.google.api.FieldInfo.Format format = 1;

Returns
TypeDescription
FieldInfo.Format

The format.

getFormatValue()

public int getFormatValue()

The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.

.google.api.FieldInfo.Format format = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for format.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FieldInfo other)

public FieldInfo.Builder mergeFrom(FieldInfo other)
Parameter
NameDescription
otherFieldInfo
Returns
TypeDescription
FieldInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FieldInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FieldInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FieldInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FieldInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FieldInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FieldInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldInfo.Builder
Overrides

setFormat(FieldInfo.Format value)

public FieldInfo.Builder setFormat(FieldInfo.Format value)

The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.

.google.api.FieldInfo.Format format = 1;

Parameter
NameDescription
valueFieldInfo.Format

The format to set.

Returns
TypeDescription
FieldInfo.Builder

This builder for chaining.

setFormatValue(int value)

public FieldInfo.Builder setFormatValue(int value)

The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.

.google.api.FieldInfo.Format format = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for format to set.

Returns
TypeDescription
FieldInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FieldInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FieldInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final FieldInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldInfo.Builder
Overrides