Class Reference.Builder (1.18.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Reference.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Reference.Builder
Overrides

build()

public Reference build()
Returns
TypeDescription
Reference

buildPartial()

public Reference buildPartial()
Returns
TypeDescription
Reference

clear()

public Reference.Builder clear()
Returns
TypeDescription
Reference.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Reference.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Reference.Builder
Overrides

clearKind()

public Reference.Builder clearKind()

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

optional string kind = 3292052;

Returns
TypeDescription
Reference.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Reference.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Reference.Builder

This builder for chaining.

clone()

public Reference.Builder clone()
Returns
TypeDescription
Reference.Builder
Overrides

getDefaultInstanceForType()

public Reference getDefaultInstanceForType()
Returns
TypeDescription
Reference

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKind()

public String getKind()

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

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

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

optional string kind = 3292052;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for referenceType.

getReferrer()

public String getReferrer()

URL of the resource which refers to the target.

optional string referrer = 351173663;

Returns
TypeDescription
String

The referrer.

getReferrerBytes()

public ByteString getReferrerBytes()

URL of the resource which refers to the target.

optional string referrer = 351173663;

Returns
TypeDescription
ByteString

The bytes for referrer.

getTarget()

public String getTarget()

URL of the resource to which this reference points.

optional string target = 192835985;

Returns
TypeDescription
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

URL of the resource to which this reference points.

optional string target = 192835985;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the target field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Reference other)

public Reference.Builder mergeFrom(Reference other)
Parameter
NameDescription
otherReference
Returns
TypeDescription
Reference.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Reference.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Reference.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Reference.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Reference.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Reference.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Reference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
valueString

The referenceType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for referenceType to set.

Returns
TypeDescription
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
NameDescription
valueString

The referrer to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for referrer to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The target to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
Reference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Reference.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Reference.Builder
Overrides