Package com.google.cloud.asset.v1
Class Resource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
com.google.cloud.asset.v1.Resource.Builder
- All Implemented Interfaces:
ResourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Resource
public static final class Resource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
implements ResourceOrBuilder
A representation of a Google Cloud resource.Protobuf type
google.cloud.asset.v1.Resource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The content of the resource, in which some sensitive fields are removed and may not be present.The URL of the discovery document containing the resource's JSON schema.The JSON schema name listed in the discovery document.The location of the resource in Google Cloud, such as its zone and region.The full name of the immediate parent of this resource.The REST URL for accessing the resource.The API version.com.google.protobuf.StructgetData()The content of the resource, in which some sensitive fields are removed and may not be present.com.google.protobuf.Struct.BuilderThe content of the resource, in which some sensitive fields are removed and may not be present.com.google.protobuf.StructOrBuilderThe content of the resource, in which some sensitive fields are removed and may not be present.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe URL of the discovery document containing the resource's JSON schema.com.google.protobuf.ByteStringThe URL of the discovery document containing the resource's JSON schema.The JSON schema name listed in the discovery document.com.google.protobuf.ByteStringThe JSON schema name listed in the discovery document.The location of the resource in Google Cloud, such as its zone and region.com.google.protobuf.ByteStringThe location of the resource in Google Cloud, such as its zone and region.The full name of the immediate parent of this resource.com.google.protobuf.ByteStringThe full name of the immediate parent of this resource.The REST URL for accessing the resource.com.google.protobuf.ByteStringThe REST URL for accessing the resource.The API version.com.google.protobuf.ByteStringThe API version.booleanhasData()The content of the resource, in which some sensitive fields are removed and may not be present.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeData(com.google.protobuf.Struct value) The content of the resource, in which some sensitive fields are removed and may not be present.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setData(com.google.protobuf.Struct value) The content of the resource, in which some sensitive fields are removed and may not be present.setData(com.google.protobuf.Struct.Builder builderForValue) The content of the resource, in which some sensitive fields are removed and may not be present.setDiscoveryDocumentUri(String value) The URL of the discovery document containing the resource's JSON schema.setDiscoveryDocumentUriBytes(com.google.protobuf.ByteString value) The URL of the discovery document containing the resource's JSON schema.setDiscoveryName(String value) The JSON schema name listed in the discovery document.setDiscoveryNameBytes(com.google.protobuf.ByteString value) The JSON schema name listed in the discovery document.setLocation(String value) The location of the resource in Google Cloud, such as its zone and region.setLocationBytes(com.google.protobuf.ByteString value) The location of the resource in Google Cloud, such as its zone and region.The full name of the immediate parent of this resource.setParentBytes(com.google.protobuf.ByteString value) The full name of the immediate parent of this resource.setResourceUrl(String value) The REST URL for accessing the resource.setResourceUrlBytes(com.google.protobuf.ByteString value) The REST URL for accessing the resource.setVersion(String value) The API version.setVersionBytes(com.google.protobuf.ByteString value) The API version.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>- Throws:
IOException
-
getVersion
The API version. Example: `v1`
string version = 1;- Specified by:
getVersionin interfaceResourceOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()The API version. Example: `v1`
string version = 1;- Specified by:
getVersionBytesin interfaceResourceOrBuilder- Returns:
- The bytes for version.
-
setVersion
The API version. Example: `v1`
string version = 1;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
The API version. Example: `v1`
string version = 1;- Returns:
- This builder for chaining.
-
setVersionBytes
The API version. Example: `v1`
string version = 1;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDiscoveryDocumentUriin interfaceResourceOrBuilder- Returns:
- The discoveryDocumentUri.
-
getDiscoveryDocumentUriBytes
public com.google.protobuf.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;- Specified by:
getDiscoveryDocumentUriBytesin interfaceResourceOrBuilder- Returns:
- The bytes for discoveryDocumentUri.
-
setDiscoveryDocumentUri
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;- Parameters:
value- The discoveryDocumentUri to set.- Returns:
- This builder for chaining.
-
clearDiscoveryDocumentUri
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;- Returns:
- This builder for chaining.
-
setDiscoveryDocumentUriBytes
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;- Parameters:
value- The bytes for discoveryDocumentUri to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getDiscoveryNamein interfaceResourceOrBuilder- Returns:
- The discoveryName.
-
getDiscoveryNameBytes
public com.google.protobuf.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;- Specified by:
getDiscoveryNameBytesin interfaceResourceOrBuilder- Returns:
- The bytes for discoveryName.
-
setDiscoveryName
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;- Parameters:
value- The discoveryName to set.- Returns:
- This builder for chaining.
-
clearDiscoveryName
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;- Returns:
- This builder for chaining.
-
setDiscoveryNameBytes
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;- Parameters:
value- The bytes for discoveryName to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getResourceUrlin interfaceResourceOrBuilder- Returns:
- The resourceUrl.
-
getResourceUrlBytes
public com.google.protobuf.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;- Specified by:
getResourceUrlBytesin interfaceResourceOrBuilder- Returns:
- The bytes for resourceUrl.
-
setResourceUrl
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;- Parameters:
value- The resourceUrl to set.- Returns:
- This builder for chaining.
-
clearResourceUrl
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;- Returns:
- This builder for chaining.
-
setResourceUrlBytes
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;- Parameters:
value- The bytes for resourceUrl to set.- Returns:
- This builder for chaining.
-
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 [IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123`
string parent = 5;- Specified by:
getParentin interfaceResourceOrBuilder- Returns:
- The parent.
-
getParentBytes
public 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 Google Cloud assets, this value is the parent resource defined in the [IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123`
string parent = 5;- Specified by:
getParentBytesin interfaceResourceOrBuilder- Returns:
- The bytes for parent.
-
setParent
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 [IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123`
string parent = 5;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
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 Google Cloud assets, this value is the parent resource defined in the [IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123`
string parent = 5;- Returns:
- This builder for chaining.
-
setParentBytes
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 [IAM policy hierarchy](https://cloud.google.com/iam/docs/overview#policy_hierarchy). Example: `//cloudresourcemanager.googleapis.com/projects/my_project_123`
string parent = 5;- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
hasData
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;- Specified by:
hasDatain interfaceResourceOrBuilder- Returns:
- Whether the data field is set.
-
getData
public com.google.protobuf.Struct getData()The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6;- Specified by:
getDatain interfaceResourceOrBuilder- Returns:
- The data.
-
setData
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6; -
setData
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6; -
mergeData
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6; -
clearData
The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6; -
getDataBuilder
public com.google.protobuf.Struct.Builder getDataBuilder()The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6; -
getDataOrBuilder
public com.google.protobuf.StructOrBuilder getDataOrBuilder()The content of the resource, in which some sensitive fields are removed and may not be present.
.google.protobuf.Struct data = 6;- Specified by:
getDataOrBuilderin interfaceResourceOrBuilder
-
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;- Specified by:
getLocationin interfaceResourceOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.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;- Specified by:
getLocationBytesin interfaceResourceOrBuilder- Returns:
- The bytes for location.
-
setLocation
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;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
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;- Returns:
- This builder for chaining.
-
setLocationBytes
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;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-