public final class Resource extends GeneratedMessageV3 implements ResourceOrBuilder
A representation of a Google Cloud resource.Protobuf type
google.cloud.asset.v1p7beta1.Resource
Modifier and Type | Class and Description |
---|---|
static class |
Resource.Builder
A representation of a Google Cloud resource.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
DATA_FIELD_NUMBER |
static int |
DISCOVERY_DOCUMENT_URI_FIELD_NUMBER |
static int |
DISCOVERY_NAME_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
PARENT_FIELD_NUMBER |
static int |
RESOURCE_URL_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Struct |
getData()
The content of the resource, in which some sensitive fields are removed
and may not be present.
|
StructOrBuilder |
getDataOrBuilder()
The content of the resource, in which some sensitive fields are removed
and may not be present.
|
static Resource |
getDefaultInstance() |
Resource |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
String |
getDiscoveryDocumentUri()
The URL of the discovery document containing the resource's JSON schema.
|
ByteString |
getDiscoveryDocumentUriBytes()
The URL of the discovery document containing the resource's JSON schema.
|
String |
getDiscoveryName()
The JSON schema name listed in the discovery document.
|
ByteString |
getDiscoveryNameBytes()
The JSON schema name listed in the discovery document.
|
String |
getLocation()
The location of the resource in Google Cloud, such as its zone and region.
|
ByteString |
getLocationBytes()
The location of the resource in Google Cloud, such as its zone and region.
|
String |
getParent()
The full name of the immediate parent of this resource.
|
ByteString |
getParentBytes()
The full name of the immediate parent of this resource.
|
Parser<Resource> |
getParserForType() |
String |
getResourceUrl()
The REST URL for accessing the resource.
|
ByteString |
getResourceUrlBytes()
The REST URL for accessing the resource.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
String |
getVersion()
The API version.
|
ByteString |
getVersionBytes()
The API version.
|
boolean |
hasData()
The content of the resource, in which some sensitive fields are removed
and may not be present.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Resource.Builder |
newBuilder() |
static Resource.Builder |
newBuilder(Resource prototype) |
Resource.Builder |
newBuilderForType() |
protected Resource.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static Resource |
parseDelimitedFrom(InputStream input) |
static Resource |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Resource |
parseFrom(byte[] data) |
static Resource |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static Resource |
parseFrom(ByteBuffer data) |
static Resource |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static Resource |
parseFrom(ByteString data) |
static Resource |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static Resource |
parseFrom(CodedInputStream input) |
static Resource |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static Resource |
parseFrom(InputStream input) |
static Resource |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<Resource> |
parser() |
Resource.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int VERSION_FIELD_NUMBER
public static final int DISCOVERY_DOCUMENT_URI_FIELD_NUMBER
public static final int DISCOVERY_NAME_FIELD_NUMBER
public static final int RESOURCE_URL_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int LOCATION_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getVersion()
The API version. Example: `v1`
string version = 1;
getVersion
in interface ResourceOrBuilder
public ByteString getVersionBytes()
The API version. Example: `v1`
string version = 1;
getVersionBytes
in interface ResourceOrBuilder
public String getDiscoveryDocumentUri()
The URL of the discovery document containing the resource's JSON schema. Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.
string discovery_document_uri = 2;
getDiscoveryDocumentUri
in interface ResourceOrBuilder
public ByteString getDiscoveryDocumentUriBytes()
The URL of the discovery document containing the resource's JSON schema. Example: `https://www.googleapis.com/discovery/v1/apis/compute/v1/rest` This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.
string discovery_document_uri = 2;
getDiscoveryDocumentUriBytes
in interface ResourceOrBuilder
public String getDiscoveryName()
The JSON schema name listed in the discovery document. Example: `Project` This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.
string discovery_name = 3;
getDiscoveryName
in interface ResourceOrBuilder
public ByteString getDiscoveryNameBytes()
The JSON schema name listed in the discovery document. Example: `Project` This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.
string discovery_name = 3;
getDiscoveryNameBytes
in interface ResourceOrBuilder
public String getResourceUrl()
The REST URL for accessing the resource. An HTTP `GET` request using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` This value is unspecified for resources without a REST API.
string resource_url = 4;
getResourceUrl
in interface ResourceOrBuilder
public ByteString getResourceUrlBytes()
The REST URL for accessing the resource. An HTTP `GET` request using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123` This value is unspecified for resources without a REST API.
string resource_url = 4;
getResourceUrlBytes
in interface ResourceOrBuilder
public String getParent()
The full name of the immediate parent of this resource. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information. For Google Cloud assets, this value is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123` For third-party assets, this field may be set differently.
string parent = 5;
getParent
in interface ResourceOrBuilder
public ByteString getParentBytes()
The full name of the immediate parent of this resource. See [Resource Names](https://cloud.google.com/apis/design/resource_names#full_resource_name) for more information. For Google Cloud assets, this value is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123` For third-party assets, this field may be set differently.
string parent = 5;
getParentBytes
in interface ResourceOrBuilder
public boolean hasData()
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6;
hasData
in interface ResourceOrBuilder
public Struct getData()
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6;
getData
in interface ResourceOrBuilder
public StructOrBuilder getDataOrBuilder()
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6;
getDataOrBuilder
in interface ResourceOrBuilder
public String getLocation()
The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.
string location = 8;
getLocation
in interface ResourceOrBuilder
public ByteString getLocationBytes()
The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.
string location = 8;
getLocationBytes
in interface ResourceOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Resource parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Resource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Resource parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Resource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Resource parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Resource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Resource parseFrom(InputStream input) throws IOException
IOException
public static Resource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Resource parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Resource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Resource parseFrom(CodedInputStream input) throws IOException
IOException
public static Resource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Resource.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Resource.Builder newBuilder()
public static Resource.Builder newBuilder(Resource prototype)
public Resource.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Resource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Resource getDefaultInstance()
public Parser<Resource> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Resource getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.