Package com.google.api
Class TypeReference.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<TypeReference,TypeReference.Builder>
com.google.api.TypeReference.Builder
- All Implemented Interfaces:
TypeReferenceOrBuilder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Cloneable
- Enclosing class:
- TypeReference
public static final class TypeReference.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TypeReference,TypeReference.Builder>
implements TypeReferenceOrBuilder
A reference to a message type, for use in [FieldInfo][google.api.FieldInfo].Protobuf type
google.api.TypeReference
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the type that the annotated, generic field may represent.The name of the type that the annotated, generic field may represent.com.google.protobuf.ByteString
The name of the type that the annotated, generic field may represent.setTypeName
(String value) The name of the type that the annotated, generic field may represent.setTypeNameBytes
(com.google.protobuf.ByteString value) The name of the type 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
-
getTypeName
The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`. If the type(s) are unknown to the service (e.g. the field accepts generic user input), use the wildcard `"*"` to denote this behavior. See [AIP-202](https://google.aip.dev/202#type-references) for more details.
string type_name = 1 [json_name = "typeName"];
- Specified by:
getTypeName
in interfaceTypeReferenceOrBuilder
- Returns:
- The typeName.
-
getTypeNameBytes
public com.google.protobuf.ByteString getTypeNameBytes()The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`. If the type(s) are unknown to the service (e.g. the field accepts generic user input), use the wildcard `"*"` to denote this behavior. See [AIP-202](https://google.aip.dev/202#type-references) for more details.
string type_name = 1 [json_name = "typeName"];
- Specified by:
getTypeNameBytes
in interfaceTypeReferenceOrBuilder
- Returns:
- The bytes for typeName.
-
setTypeName
The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`. If the type(s) are unknown to the service (e.g. the field accepts generic user input), use the wildcard `"*"` to denote this behavior. See [AIP-202](https://google.aip.dev/202#type-references) for more details.
string type_name = 1 [json_name = "typeName"];
- Parameters:
value
- The typeName to set.- Returns:
- This builder for chaining.
-
clearTypeName
The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`. If the type(s) are unknown to the service (e.g. the field accepts generic user input), use the wildcard `"*"` to denote this behavior. See [AIP-202](https://google.aip.dev/202#type-references) for more details.
string type_name = 1 [json_name = "typeName"];
- Returns:
- This builder for chaining.
-
setTypeNameBytes
The name of the type that the annotated, generic field may represent. If the type is in the same protobuf package, the value can be the simple message name e.g., `"MyMessage"`. Otherwise, the value must be the fully-qualified message name e.g., `"google.library.v1.Book"`. If the type(s) are unknown to the service (e.g. the field accepts generic user input), use the wildcard `"*"` to denote this behavior. See [AIP-202](https://google.aip.dev/202#type-references) for more details.
string type_name = 1 [json_name = "typeName"];
- Parameters:
value
- The bytes for typeName to set.- Returns:
- This builder for chaining.
-