Package com.google.api
Class FieldInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<FieldInfo,FieldInfo.Builder>
com.google.api.FieldInfo.Builder
- All Implemented Interfaces:
FieldInfoOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- FieldInfo
public static final class FieldInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FieldInfo,FieldInfo.Builder>
implements FieldInfoOrBuilder
Rich semantic information of an API field beyond basic typing.Protobuf type
google.api.FieldInfo
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllReferencedTypes
(Iterable<? extends TypeReference> values) The type(s) that the annotated, generic field may represent.addReferencedTypes
(int index, TypeReference value) The type(s) that the annotated, generic field may represent.addReferencedTypes
(int index, TypeReference.Builder builderForValue) The type(s) that the annotated, generic field may represent.addReferencedTypes
(TypeReference value) The type(s) that the annotated, generic field may represent.addReferencedTypes
(TypeReference.Builder builderForValue) The type(s) that the annotated, generic field may represent.The standard format of a field value.The type(s) that the annotated, generic field may represent.The standard format of a field value.int
The standard format of a field value.getReferencedTypes
(int index) The type(s) that the annotated, generic field may represent.int
The type(s) that the annotated, generic field may represent.The type(s) that the annotated, generic field may represent.removeReferencedTypes
(int index) The type(s) that the annotated, generic field may represent.setFormat
(FieldInfo.Format value) The standard format of a field value.setFormatValue
(int value) The standard format of a field value.setReferencedTypes
(int index, TypeReference value) The type(s) that the annotated, generic field may represent.setReferencedTypes
(int index, TypeReference.Builder builderForValue) The type(s) that the annotated, generic field may represent.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "format"];
- Specified by:
getFormatValue
in interfaceFieldInfoOrBuilder
- Returns:
- The enum numeric value on the wire for format.
-
setFormatValue
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 [json_name = "format"];
- Parameters:
value
- The format to set.- Returns:
- This builder for chaining.
-
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 [json_name = "format"];
- Specified by:
getFormat
in interfaceFieldInfoOrBuilder
- Returns:
- The format.
-
setFormat
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 [json_name = "format"];
- Parameters:
value
- The enum numeric value on the wire for format to set.- Returns:
- This builder for chaining.
-
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 [json_name = "format"];
- Returns:
- This builder for chaining.
-
getReferencedTypesList
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
- Specified by:
getReferencedTypesList
in interfaceFieldInfoOrBuilder
-
getReferencedTypesCount
public int getReferencedTypesCount()The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
- Specified by:
getReferencedTypesCount
in interfaceFieldInfoOrBuilder
-
getReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
- Specified by:
getReferencedTypes
in interfaceFieldInfoOrBuilder
-
setReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
setReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
addReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
addReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
addReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
addReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
addAllReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
clearReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-
removeReferencedTypes
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type `google.protobuf.Any`. Supporting other generic types may be considered in the future.
repeated .google.api.TypeReference referenced_types = 2 [json_name = "referencedTypes"];
-