- 3.59.0 (latest)
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.2-SNAPSHOT
- 3.6.0
- 3.4.1
- 3.3.1
- 3.2.17
public static final class Resource.Builder extends GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
Representation of a cloud resource.
Protobuf type google.cloud.asset.v1p2beta1.Resource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Resource.BuilderImplements
ResourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Resource.Builder |
build()
public Resource build()
Type | Description |
Resource |
buildPartial()
public Resource buildPartial()
Type | Description |
Resource |
clear()
public Resource.Builder clear()
Type | Description |
Resource.Builder |
clearData()
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;
Type | Description |
Resource.Builder |
clearDiscoveryDocumentUri()
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;
Type | Description |
Resource.Builder |
This builder for chaining. |
clearDiscoveryName()
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;
Type | Description |
Resource.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Resource.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
Resource.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
Resource.Builder |
clearParent()
public Resource.Builder clearParent()
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For GCP assets, it is the parent resource defined in the Cloud IAM 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;
Type | Description |
Resource.Builder |
This builder for chaining. |
clearResourceUrl()
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;
Type | Description |
Resource.Builder |
This builder for chaining. |
clearVersion()
public Resource.Builder clearVersion()
The API version. Example: "v1".
string version = 1;
Type | Description |
Resource.Builder |
This builder for chaining. |
clone()
public Resource.Builder clone()
Type | Description |
Resource.Builder |
getData()
public 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;
Type | Description |
Struct |
The data. |
getDataBuilder()
public 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;
Type | Description |
Builder |
getDataOrBuilder()
public 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;
Type | Description |
StructOrBuilder |
getDefaultInstanceForType()
public Resource getDefaultInstanceForType()
Type | Description |
Resource |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDiscoveryDocumentUri()
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;
Type | Description |
String |
The discoveryDocumentUri. |
getDiscoveryDocumentUriBytes()
public 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;
Type | Description |
ByteString |
The bytes for discoveryDocumentUri. |
getDiscoveryName()
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;
Type | Description |
String |
The discoveryName. |
getDiscoveryNameBytes()
public 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;
Type | Description |
ByteString |
The bytes for discoveryName. |
getParent()
public String getParent()
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For GCP assets, it is the parent resource defined in the Cloud IAM 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;
Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For GCP assets, it is the parent resource defined in the Cloud IAM 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;
Type | Description |
ByteString |
The bytes for parent. |
getResourceUrl()
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;
Type | Description |
String |
The resourceUrl. |
getResourceUrlBytes()
public 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;
Type | Description |
ByteString |
The bytes for resourceUrl. |
getVersion()
public String getVersion()
The API version. Example: "v1".
string version = 1;
Type | Description |
String |
The version. |
getVersionBytes()
public ByteString getVersionBytes()
The API version. Example: "v1".
string version = 1;
Type | Description |
ByteString |
The bytes for version. |
hasData()
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;
Type | Description |
boolean |
Whether the data field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeData(Struct value)
public Resource.Builder mergeData(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;
Name | Description |
value |
Struct |
Type | Description |
Resource.Builder |
mergeFrom(Resource other)
public Resource.Builder mergeFrom(Resource other)
Name | Description |
other |
Resource |
Type | Description |
Resource.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
Resource.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Resource.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
Resource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Resource.Builder |
setData(Struct value)
public Resource.Builder setData(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;
Name | Description |
value |
Struct |
Type | Description |
Resource.Builder |
setData(Struct.Builder builderForValue)
public Resource.Builder setData(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;
Name | Description |
builderForValue |
Builder |
Type | Description |
Resource.Builder |
setDiscoveryDocumentUri(String value)
public 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;
Name | Description |
value |
String The discoveryDocumentUri to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setDiscoveryDocumentUriBytes(ByteString value)
public Resource.Builder setDiscoveryDocumentUriBytes(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;
Name | Description |
value |
ByteString The bytes for discoveryDocumentUri to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setDiscoveryName(String value)
public 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;
Name | Description |
value |
String The discoveryName to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setDiscoveryNameBytes(ByteString value)
public Resource.Builder setDiscoveryNameBytes(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;
Name | Description |
value |
ByteString The bytes for discoveryName to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
Resource.Builder |
setParent(String value)
public Resource.Builder setParent(String value)
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For GCP assets, it is the parent resource defined in the Cloud IAM 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;
Name | Description |
value |
String The parent to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public Resource.Builder setParentBytes(ByteString value)
The full name of the immediate parent of this resource. See
Resource
Names
for more information.
For GCP assets, it is the parent resource defined in the Cloud IAM 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;
Name | Description |
value |
ByteString The bytes for parent to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Resource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
Resource.Builder |
setResourceUrl(String value)
public 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;
Name | Description |
value |
String The resourceUrl to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setResourceUrlBytes(ByteString value)
public Resource.Builder setResourceUrlBytes(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;
Name | Description |
value |
ByteString The bytes for resourceUrl to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
Resource.Builder |
setVersion(String value)
public Resource.Builder setVersion(String value)
The API version. Example: "v1".
string version = 1;
Name | Description |
value |
String The version to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |
setVersionBytes(ByteString value)
public Resource.Builder setVersionBytes(ByteString value)
The API version. Example: "v1".
string version = 1;
Name | Description |
value |
ByteString The bytes for version to set. |
Type | Description |
Resource.Builder |
This builder for chaining. |