Class Reference.Builder (1.63.0)

public static final class Reference.Builder extends GeneratedMessageV3.Builder<Reference.Builder> implements ReferenceOrBuilder

Represents a reference to a resource.

Protobuf type google.cloud.compute.v1.Reference

Implements

ReferenceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Reference build()
Returns
Type Description
Reference

buildPartial()

public Reference buildPartial()
Returns
Type Description
Reference

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKind()

public Reference.Builder clearKind()

[Output Only] Type of the resource. Always compute#reference for references.

optional string kind = 3292052;

Returns
Type Description
Reference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferenceType()

public Reference.Builder clearReferenceType()

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

optional string reference_type = 247521198;

Returns
Type Description
Reference.Builder

This builder for chaining.

clearReferrer()

public Reference.Builder clearReferrer()

URL of the resource which refers to the target.

optional string referrer = 351173663;

Returns
Type Description
Reference.Builder

This builder for chaining.

clearTarget()

public Reference.Builder clearTarget()

URL of the resource to which this reference points.

optional string target = 192835985;

Returns
Type Description
Reference.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Reference getDefaultInstanceForType()
Returns
Type Description
Reference

getDescriptorForType()

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

getKind()

public String getKind()

[Output Only] Type of the resource. Always compute#reference for references.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#reference for references.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getReferenceType()

public String getReferenceType()

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

optional string reference_type = 247521198;

Returns
Type Description
String

The referenceType.

getReferenceTypeBytes()

public ByteString getReferenceTypeBytes()

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

optional string reference_type = 247521198;

Returns
Type Description
ByteString

The bytes for referenceType.

getReferrer()

public String getReferrer()

URL of the resource which refers to the target.

optional string referrer = 351173663;

Returns
Type Description
String

The referrer.

getReferrerBytes()

public ByteString getReferrerBytes()

URL of the resource which refers to the target.

optional string referrer = 351173663;

Returns
Type Description
ByteString

The bytes for referrer.

getTarget()

public String getTarget()

URL of the resource to which this reference points.

optional string target = 192835985;

Returns
Type Description
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

URL of the resource to which this reference points.

optional string target = 192835985;

Returns
Type Description
ByteString

The bytes for target.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource. Always compute#reference for references.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasReferenceType()

public boolean hasReferenceType()

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

optional string reference_type = 247521198;

Returns
Type Description
boolean

Whether the referenceType field is set.

hasReferrer()

public boolean hasReferrer()

URL of the resource which refers to the target.

optional string referrer = 351173663;

Returns
Type Description
boolean

Whether the referrer field is set.

hasTarget()

public boolean hasTarget()

URL of the resource to which this reference points.

optional string target = 192835985;

Returns
Type Description
boolean

Whether the target field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Reference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKind(String value)

public Reference.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#reference for references.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Reference.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#reference for references.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setReferenceType(String value)

public Reference.Builder setReferenceType(String value)

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

optional string reference_type = 247521198;

Parameter
Name Description
value String

The referenceType to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setReferenceTypeBytes(ByteString value)

public Reference.Builder setReferenceTypeBytes(ByteString value)

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

optional string reference_type = 247521198;

Parameter
Name Description
value ByteString

The bytes for referenceType to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setReferrer(String value)

public Reference.Builder setReferrer(String value)

URL of the resource which refers to the target.

optional string referrer = 351173663;

Parameter
Name Description
value String

The referrer to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setReferrerBytes(ByteString value)

public Reference.Builder setReferrerBytes(ByteString value)

URL of the resource which refers to the target.

optional string referrer = 351173663;

Parameter
Name Description
value ByteString

The bytes for referrer to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

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

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

setTarget(String value)

public Reference.Builder setTarget(String value)

URL of the resource to which this reference points.

optional string target = 192835985;

Parameter
Name Description
value String

The target to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setTargetBytes(ByteString value)

public Reference.Builder setTargetBytes(ByteString value)

URL of the resource to which this reference points.

optional string target = 192835985;

Parameter
Name Description
value ByteString

The bytes for target to set.

Returns
Type Description
Reference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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