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
Modifier and Type | Method and Description |
---|---|
Resource.Builder |
addRepeatedField(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(Descriptors.FieldDescriptor field) |
Resource.Builder |
clearOneof(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() |
Struct |
getData()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Struct.Builder |
getDataBuilder()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
StructOrBuilder |
getDataOrBuilder()
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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 |
getParent()
The full name of the immediate parent of this resource.
|
ByteString |
getParentBytes()
The full name of the immediate parent of this resource.
|
String |
getResourceUrl()
The REST URL for accessing the resource.
|
ByteString |
getResourceUrlBytes()
The REST URL for accessing the resource.
|
String |
getVersion()
The API version.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Resource.Builder |
mergeData(Struct value)
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Resource.Builder |
mergeFrom(Message other) |
Resource.Builder |
mergeFrom(Resource other) |
Resource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Resource.Builder |
setData(Struct.Builder builderForValue)
The content of the resource, in which some sensitive fields are scrubbed
away and may not be present.
|
Resource.Builder |
setData(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(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(ByteString value)
The JSON schema name listed in the discovery document.
|
Resource.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Resource.Builder |
setParent(String value)
The full name of the immediate parent of this resource.
|
Resource.Builder |
setParentBytes(ByteString value)
The full name of the immediate parent of this resource.
|
Resource.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Resource.Builder |
setResourceUrl(String value)
The REST URL for accessing the resource.
|
Resource.Builder |
setResourceUrlBytes(ByteString value)
The REST URL for accessing the resource.
|
Resource.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
Resource.Builder |
setVersion(String value)
The API version.
|
Resource.Builder |
setVersionBytes(ByteString value)
The API version.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Resource.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Resource build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Resource buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Resource.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Resource.Builder>
public Resource.Builder mergeFrom(Resource other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Resource.Builder>
public Resource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Resource.Builder>
IOException
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 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(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 ResourceOrBuilder
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;
getDiscoveryDocumentUriBytes
in interface ResourceOrBuilder
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;
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(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 ResourceOrBuilder
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;
getDiscoveryNameBytes
in interface ResourceOrBuilder
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;
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(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 ResourceOrBuilder
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;
getResourceUrlBytes
in interface ResourceOrBuilder
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;
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(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 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 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 ResourceOrBuilder
public 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(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 ResourceOrBuilder
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;
getData
in interface ResourceOrBuilder
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;
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;
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;
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 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 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 ResourceOrBuilder
public final Resource.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Resource.Builder>
public final Resource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Resource.Builder>
Copyright © 2022 Google LLC. All rights reserved.