Class TypeReference.Builder (2.46.0)

public static final class TypeReference.Builder extends GeneratedMessageV3.Builder<TypeReference.Builder> implements TypeReferenceOrBuilder

A reference to a message type, for use in FieldInfo.

Protobuf type google.api.TypeReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TypeReference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TypeReference.Builder
Overrides

build()

public TypeReference build()
Returns
Type Description
TypeReference

buildPartial()

public TypeReference buildPartial()
Returns
Type Description
TypeReference

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TypeReference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TypeReference.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TypeReference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TypeReference.Builder
Overrides

clearTypeName()

public TypeReference.Builder 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 for more details.

string type_name = 1;

Returns
Type Description
TypeReference.Builder

This builder for chaining.

clone()

public TypeReference.Builder clone()
Returns
Type Description
TypeReference.Builder
Overrides

getDefaultInstanceForType()

public TypeReference getDefaultInstanceForType()
Returns
Type Description
TypeReference

getDescriptorForType()

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

getTypeName()

public String 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 for more details.

string type_name = 1;

Returns
Type Description
String

The typeName.

getTypeNameBytes()

public 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 for more details.

string type_name = 1;

Returns
Type Description
ByteString

The bytes for typeName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TypeReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TypeReference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TypeReference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TypeReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TypeReference.Builder
Overrides

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

public TypeReference.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TypeReference.Builder
Overrides

setTypeName(String value)

public TypeReference.Builder setTypeName(String value)

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 for more details.

string type_name = 1;

Parameter
Name Description
value String

The typeName to set.

Returns
Type Description
TypeReference.Builder

This builder for chaining.

setTypeNameBytes(ByteString value)

public TypeReference.Builder setTypeNameBytes(ByteString value)

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 for more details.

string type_name = 1;

Parameter
Name Description
value ByteString

The bytes for typeName to set.

Returns
Type Description
TypeReference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TypeReference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TypeReference.Builder
Overrides