Send feedback
Class RelatedResource (3.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.12.0 keyboard_arrow_down
public final class RelatedResource extends GeneratedMessageV3 implements RelatedResourceOrBuilder
The detailed related resource.
Protobuf type google.cloud.asset.v1.RelatedResource
Static Fields
public static final int ASSET_TYPE_FIELD_NUMBER
Field Value
public static final int FULL_RESOURCE_NAME_FIELD_NUMBER
Field Value
Static Methods
public static RelatedResource getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static RelatedResource . Builder newBuilder ()
Returns
public static RelatedResource . Builder newBuilder ( RelatedResource prototype )
Parameter
Returns
public static RelatedResource parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static RelatedResource parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RelatedResource parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Exceptions
public static RelatedResource parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RelatedResource parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static RelatedResource parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RelatedResource parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static RelatedResource parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RelatedResource parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static RelatedResource parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static RelatedResource parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static RelatedResource parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<RelatedResource> parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public String getAssetType ()
The type of the asset. Example: compute.googleapis.com/Instance
string asset_type = 1;
Returns
Type
Description
String
The assetType.
public ByteString getAssetTypeBytes ()
The type of the asset. Example: compute.googleapis.com/Instance
string asset_type = 1;
Returns
Type
Description
ByteString
The bytes for assetType.
public RelatedResource getDefaultInstanceForType ()
Returns
public String getFullResourceName ()
The full resource name of the related resource. Example:
//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123
string full_resource_name = 2;
Returns
Type
Description
String
The fullResourceName.
public ByteString getFullResourceNameBytes ()
The full resource name of the related resource. Example:
//compute.googleapis.com/projects/my_proj_123/zones/instance/instance123
string full_resource_name = 2;
Returns
Type
Description
ByteString
The bytes for fullResourceName.
public Parser<RelatedResource> getParserForType ()
Returns
Overrides
public int getSerializedSize ()
Returns
Overrides
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public RelatedResource . Builder newBuilderForType ()
Returns
protected RelatedResource . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public RelatedResource . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]