Class Reference (1.24.0)

public final class Reference extends GeneratedMessageV3 implements ReferenceOrBuilder

Represents a reference to a resource.

Protobuf type google.cloud.compute.v1.Reference

Implements

ReferenceOrBuilder

Static Fields

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

REFERENCE_TYPE_FIELD_NUMBER

public static final int REFERENCE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

REFERRER_FIELD_NUMBER

public static final int REFERRER_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_FIELD_NUMBER

public static final int TARGET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Reference getDefaultInstance()
Returns
TypeDescription
Reference

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Reference.Builder newBuilder()
Returns
TypeDescription
Reference.Builder

newBuilder(Reference prototype)

public static Reference.Builder newBuilder(Reference prototype)
Parameter
NameDescription
prototypeReference
Returns
TypeDescription
Reference.Builder

parseDelimitedFrom(InputStream input)

public static Reference parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Reference
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Reference parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Reference parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Reference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Reference parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Reference parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Reference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Reference parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Reference parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Reference
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Reference parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Reference parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Reference
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Reference parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Reference parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Reference
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Reference parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reference
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Reference> parser()
Returns
TypeDescription
Parser<Reference>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Reference getDefaultInstanceForType()
Returns
TypeDescription
Reference

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.

getParserForType()

public Parser<Reference> getParserForType()
Returns
TypeDescription
Parser<Reference>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Reference.Builder newBuilderForType()
Returns
TypeDescription
Reference.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Reference.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Reference.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Reference.Builder toBuilder()
Returns
TypeDescription
Reference.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException