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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FieldInfo.BuilderImplements
FieldInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FieldInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
build()
public FieldInfo build()
Returns | |
---|---|
Type | Description |
FieldInfo |
buildPartial()
public FieldInfo buildPartial()
Returns | |
---|---|
Type | Description |
FieldInfo |
clear()
public FieldInfo.Builder clear()
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
clearField(Descriptors.FieldDescriptor field)
public FieldInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
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 | |
---|---|
Type | Description |
FieldInfo.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public FieldInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
clone()
public FieldInfo.Builder clone()
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
getDefaultInstanceForType()
public FieldInfo getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
FieldInfo |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for format. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(FieldInfo other)
public FieldInfo.Builder mergeFrom(FieldInfo other)
Parameter | |
---|---|
Name | Description |
other |
FieldInfo |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FieldInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public FieldInfo.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FieldInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public FieldInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
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 | |
---|---|
Name | Description |
value |
FieldInfo.Format The format to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for format to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final FieldInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
FieldInfo.Builder |