public static final class Resource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
Representation of a cloud resource.Protobuf type
google.cloud.asset.v1p2beta1.Resource| Modifier and Type | Method and Description |
|---|---|
Resource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Resource |
build() |
Resource |
buildPartial() |
Resource.Builder |
clear() |
Resource.Builder |
clearData()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource.Builder |
clearDiscoveryDocumentUri()
The URL of the discovery document containing the resource's JSON schema.
|
Resource.Builder |
clearDiscoveryName()
The JSON schema name listed in the discovery document.
|
Resource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Resource.Builder |
clearInternalData()
The actual metadata content for the resource, only visible for internal
users.
|
Resource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Resource.Builder |
clearParent()
The full name of the immediate parent of this resource.
|
Resource.Builder |
clearResourceUrl()
The REST URL for accessing the resource.
|
Resource.Builder |
clearVersion()
The API version.
|
Resource.Builder |
clone() |
com.google.protobuf.Struct |
getData()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
com.google.protobuf.Struct.Builder |
getDataBuilder()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
com.google.protobuf.StructOrBuilder |
getDataOrBuilder()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDiscoveryDocumentUri()
The URL of the discovery document containing the resource's JSON schema.
|
com.google.protobuf.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.
|
com.google.protobuf.ByteString |
getDiscoveryNameBytes()
The JSON schema name listed in the discovery document.
|
com.google.protobuf.Any |
getInternalData()
The actual metadata content for the resource, only visible for internal
users.
|
com.google.protobuf.Any.Builder |
getInternalDataBuilder()
The actual metadata content for the resource, only visible for internal
users.
|
com.google.protobuf.AnyOrBuilder |
getInternalDataOrBuilder()
The actual metadata content for the resource, only visible for internal
users.
|
String |
getParent()
The full name of the immediate parent of this resource.
|
com.google.protobuf.ByteString |
getParentBytes()
The full name of the immediate parent of this resource.
|
String |
getResourceUrl()
The REST URL for accessing the resource.
|
com.google.protobuf.ByteString |
getResourceUrlBytes()
The REST URL for accessing the resource.
|
String |
getVersion()
The API version.
|
com.google.protobuf.ByteString |
getVersionBytes()
The API version.
|
boolean |
hasData()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
boolean |
hasInternalData()
The actual metadata content for the resource, only visible for internal
users.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Resource.Builder |
mergeData(com.google.protobuf.Struct value)
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Resource.Builder |
mergeFrom(com.google.protobuf.Message other) |
Resource.Builder |
mergeFrom(Resource other) |
Resource.Builder |
mergeInternalData(com.google.protobuf.Any value)
The actual metadata content for the resource, only visible for internal
users.
|
Resource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Resource.Builder |
setData(com.google.protobuf.Struct.Builder builderForValue)
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource.Builder |
setData(com.google.protobuf.Struct value)
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource.Builder |
setDiscoveryDocumentUri(String value)
The URL of the discovery document containing the resource's JSON schema.
|
Resource.Builder |
setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value)
The URL of the discovery document containing the resource's JSON schema.
|
Resource.Builder |
setDiscoveryName(String value)
The JSON schema name listed in the discovery document.
|
Resource.Builder |
setDiscoveryNameBytes(com.google.protobuf.ByteString value)
The JSON schema name listed in the discovery document.
|
Resource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Resource.Builder |
setInternalData(com.google.protobuf.Any.Builder builderForValue)
The actual metadata content for the resource, only visible for internal
users.
|
Resource.Builder |
setInternalData(com.google.protobuf.Any value)
The actual metadata content for the resource, only visible for internal
users.
|
Resource.Builder |
setParent(String value)
The full name of the immediate parent of this resource.
|
Resource.Builder |
setParentBytes(com.google.protobuf.ByteString value)
The full name of the immediate parent of this resource.
|
Resource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Resource.Builder |
setResourceUrl(String value)
The REST URL for accessing the resource.
|
Resource.Builder |
setResourceUrlBytes(com.google.protobuf.ByteString value)
The REST URL for accessing the resource.
|
Resource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Resource.Builder |
setVersion(String value)
The API version.
|
Resource.Builder |
setVersionBytes(com.google.protobuf.ByteString value)
The API version.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Resource build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Resource buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Resource.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Resource.Builder>public Resource.Builder mergeFrom(Resource other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Resource.Builder>IOExceptionpublic String getVersion()
The API version. Example: "v1".
string version = 1;getVersion in interface ResourceOrBuilderpublic com.google.protobuf.ByteString getVersionBytes()
The API version. Example: "v1".
string version = 1;getVersionBytes in interface ResourceOrBuilderpublic Resource.Builder setVersion(String value)
The API version. Example: "v1".
string version = 1;value - The version to set.public Resource.Builder clearVersion()
The API version. Example: "v1".
string version = 1;public Resource.Builder setVersionBytes(com.google.protobuf.ByteString value)
The API version. Example: "v1".
string version = 1;value - The bytes for version to set.public String getDiscoveryDocumentUri()
The URL of the discovery document containing the resource's JSON schema. For example: `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.
string discovery_document_uri = 2;getDiscoveryDocumentUri in interface ResourceOrBuilderpublic com.google.protobuf.ByteString getDiscoveryDocumentUriBytes()
The URL of the discovery document containing the resource's JSON schema. For example: `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.
string discovery_document_uri = 2;getDiscoveryDocumentUriBytes in interface ResourceOrBuilderpublic Resource.Builder setDiscoveryDocumentUri(String value)
The URL of the discovery document containing the resource's JSON schema. For example: `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.
string discovery_document_uri = 2;value - The discoveryDocumentUri to set.public Resource.Builder clearDiscoveryDocumentUri()
The URL of the discovery document containing the resource's JSON schema. For example: `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.
string discovery_document_uri = 2;public Resource.Builder setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value)
The URL of the discovery document containing the resource's JSON schema. For example: `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`. It will be left unspecified for resources without a discovery-based API, such as Cloud Bigtable.
string discovery_document_uri = 2;value - The bytes for discoveryDocumentUri to set.public String getDiscoveryName()
The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.
string discovery_name = 3;getDiscoveryName in interface ResourceOrBuilderpublic com.google.protobuf.ByteString getDiscoveryNameBytes()
The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.
string discovery_name = 3;getDiscoveryNameBytes in interface ResourceOrBuilderpublic Resource.Builder setDiscoveryName(String value)
The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.
string discovery_name = 3;value - The discoveryName to set.public Resource.Builder clearDiscoveryName()
The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.
string discovery_name = 3;public Resource.Builder setDiscoveryNameBytes(com.google.protobuf.ByteString value)
The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.
string discovery_name = 3;value - The bytes for discoveryName to set.public String getResourceUrl()
The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. It will be left unspecified for resources without a REST API.
string resource_url = 4;getResourceUrl in interface ResourceOrBuilderpublic com.google.protobuf.ByteString getResourceUrlBytes()
The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. It will be left unspecified for resources without a REST API.
string resource_url = 4;getResourceUrlBytes in interface ResourceOrBuilderpublic Resource.Builder setResourceUrl(String value)
The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. It will be left unspecified for resources without a REST API.
string resource_url = 4;value - The resourceUrl to set.public Resource.Builder clearResourceUrl()
The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. It will be left unspecified for resources without a REST API.
string resource_url = 4;public Resource.Builder setResourceUrlBytes(com.google.protobuf.ByteString value)
The REST URL for accessing the resource. An HTTP GET operation using this URL returns the resource itself. Example: `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`. It will be left unspecified for resources without a REST API.
string resource_url = 4;value - The bytes for resourceUrl to set.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 GCP assets, it is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). For example: `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. For third-party assets, it is up to the users to define.
string parent = 5;getParent in interface ResourceOrBuilderpublic com.google.protobuf.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 GCP assets, it is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). For example: `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. For third-party assets, it is up to the users to define.
string parent = 5;getParentBytes in interface ResourceOrBuilderpublic Resource.Builder setParent(String value)
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 GCP assets, it is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). For example: `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. For third-party assets, it is up to the users to define.
string parent = 5;value - The parent to set.public Resource.Builder clearParent()
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 GCP assets, it is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). For example: `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. For third-party assets, it is up to the users to define.
string parent = 5;public Resource.Builder setParentBytes(com.google.protobuf.ByteString value)
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 GCP assets, it is the parent resource defined in the [Cloud IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). For example: `"//cloudresourcemanager.googleapis.com/projects/my_project_123"`. For third-party assets, it is up to the users to define.
string parent = 5;value - The bytes for parent to set.public boolean hasData()
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;hasData in interface ResourceOrBuilderpublic com.google.protobuf.Struct getData()
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;getData in interface ResourceOrBuilderpublic Resource.Builder setData(com.google.protobuf.Struct value)
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;public Resource.Builder setData(com.google.protobuf.Struct.Builder builderForValue)
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;public Resource.Builder mergeData(com.google.protobuf.Struct value)
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;public Resource.Builder clearData()
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;public com.google.protobuf.Struct.Builder getDataBuilder()
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;public com.google.protobuf.StructOrBuilder getDataOrBuilder()
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
.google.protobuf.Struct data = 6;getDataOrBuilder in interface ResourceOrBuilderpublic boolean hasInternalData()
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;hasInternalData in interface ResourceOrBuilderpublic com.google.protobuf.Any getInternalData()
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;getInternalData in interface ResourceOrBuilderpublic Resource.Builder setInternalData(com.google.protobuf.Any value)
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;public Resource.Builder setInternalData(com.google.protobuf.Any.Builder builderForValue)
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;public Resource.Builder mergeInternalData(com.google.protobuf.Any value)
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;public Resource.Builder clearInternalData()
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;public com.google.protobuf.Any.Builder getInternalDataBuilder()
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;public com.google.protobuf.AnyOrBuilder getInternalDataOrBuilder()
The actual metadata content for the resource, only visible for internal users.
.google.protobuf.Any internal_data = 7;getInternalDataOrBuilder in interface ResourceOrBuilderpublic final Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>public final Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>Copyright © 2020 Google LLC. All rights reserved.