public static final class Resource.Builder extends GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
Information related to the Google Cloud resource.Protobuf type
google.cloud.securitycenter.v1p1beta1.Resource
Modifier and Type | Method and Description |
---|---|
Resource.Builder |
addAllFolders(Iterable<? extends Folder> values)
Output only.
|
Resource.Builder |
addFolders(Folder.Builder builderForValue)
Output only.
|
Resource.Builder |
addFolders(Folder value)
Output only.
|
Resource.Builder |
addFolders(int index,
Folder.Builder builderForValue)
Output only.
|
Resource.Builder |
addFolders(int index,
Folder value)
Output only.
|
Folder.Builder |
addFoldersBuilder()
Output only.
|
Folder.Builder |
addFoldersBuilder(int index)
Output only.
|
Resource.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Resource |
build() |
Resource |
buildPartial() |
Resource.Builder |
clear() |
Resource.Builder |
clearField(Descriptors.FieldDescriptor field) |
Resource.Builder |
clearFolders()
Output only.
|
Resource.Builder |
clearName()
The full resource name of the resource.
|
Resource.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Resource.Builder |
clearParent()
The full resource name of resource's parent.
|
Resource.Builder |
clearParentDisplayName()
The human readable name of resource's parent.
|
Resource.Builder |
clearProject()
The full resource name of project that the resource belongs to.
|
Resource.Builder |
clearProjectDisplayName()
The human readable name of project that the resource belongs to.
|
Resource.Builder |
clone() |
Resource |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Folder |
getFolders(int index)
Output only.
|
Folder.Builder |
getFoldersBuilder(int index)
Output only.
|
List<Folder.Builder> |
getFoldersBuilderList()
Output only.
|
int |
getFoldersCount()
Output only.
|
List<Folder> |
getFoldersList()
Output only.
|
FolderOrBuilder |
getFoldersOrBuilder(int index)
Output only.
|
List<? extends FolderOrBuilder> |
getFoldersOrBuilderList()
Output only.
|
String |
getName()
The full resource name of the resource.
|
ByteString |
getNameBytes()
The full resource name of the resource.
|
String |
getParent()
The full resource name of resource's parent.
|
ByteString |
getParentBytes()
The full resource name of resource's parent.
|
String |
getParentDisplayName()
The human readable name of resource's parent.
|
ByteString |
getParentDisplayNameBytes()
The human readable name of resource's parent.
|
String |
getProject()
The full resource name of project that the resource belongs to.
|
ByteString |
getProjectBytes()
The full resource name of project that the resource belongs to.
|
String |
getProjectDisplayName()
The human readable name of project that the resource belongs to.
|
ByteString |
getProjectDisplayNameBytes()
The human readable name of project that the resource belongs to.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Resource.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Resource.Builder |
mergeFrom(Message other) |
Resource.Builder |
mergeFrom(Resource other) |
Resource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Resource.Builder |
removeFolders(int index)
Output only.
|
Resource.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Resource.Builder |
setFolders(int index,
Folder.Builder builderForValue)
Output only.
|
Resource.Builder |
setFolders(int index,
Folder value)
Output only.
|
Resource.Builder |
setName(String value)
The full resource name of the resource.
|
Resource.Builder |
setNameBytes(ByteString value)
The full resource name of the resource.
|
Resource.Builder |
setParent(String value)
The full resource name of resource's parent.
|
Resource.Builder |
setParentBytes(ByteString value)
The full resource name of resource's parent.
|
Resource.Builder |
setParentDisplayName(String value)
The human readable name of resource's parent.
|
Resource.Builder |
setParentDisplayNameBytes(ByteString value)
The human readable name of resource's parent.
|
Resource.Builder |
setProject(String value)
The full resource name of project that the resource belongs to.
|
Resource.Builder |
setProjectBytes(ByteString value)
The full resource name of project that the resource belongs to.
|
Resource.Builder |
setProjectDisplayName(String value)
The human readable name of project that the resource belongs to.
|
Resource.Builder |
setProjectDisplayNameBytes(ByteString value)
The human readable name of project that the resource belongs to.
|
Resource.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Resource.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
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 getName()
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;
getName
in interface ResourceOrBuilder
public ByteString getNameBytes()
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;
getNameBytes
in interface ResourceOrBuilder
public Resource.Builder setName(String value)
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;
value
- The name to set.public Resource.Builder clearName()
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;
public Resource.Builder setNameBytes(ByteString value)
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;
value
- The bytes for name to set.public String getProject()
The full resource name of project that the resource belongs to.
string project = 2;
getProject
in interface ResourceOrBuilder
public ByteString getProjectBytes()
The full resource name of project that the resource belongs to.
string project = 2;
getProjectBytes
in interface ResourceOrBuilder
public Resource.Builder setProject(String value)
The full resource name of project that the resource belongs to.
string project = 2;
value
- The project to set.public Resource.Builder clearProject()
The full resource name of project that the resource belongs to.
string project = 2;
public Resource.Builder setProjectBytes(ByteString value)
The full resource name of project that the resource belongs to.
string project = 2;
value
- The bytes for project to set.public String getProjectDisplayName()
The human readable name of project that the resource belongs to.
string project_display_name = 3;
getProjectDisplayName
in interface ResourceOrBuilder
public ByteString getProjectDisplayNameBytes()
The human readable name of project that the resource belongs to.
string project_display_name = 3;
getProjectDisplayNameBytes
in interface ResourceOrBuilder
public Resource.Builder setProjectDisplayName(String value)
The human readable name of project that the resource belongs to.
string project_display_name = 3;
value
- The projectDisplayName to set.public Resource.Builder clearProjectDisplayName()
The human readable name of project that the resource belongs to.
string project_display_name = 3;
public Resource.Builder setProjectDisplayNameBytes(ByteString value)
The human readable name of project that the resource belongs to.
string project_display_name = 3;
value
- The bytes for projectDisplayName to set.public String getParent()
The full resource name of resource's parent.
string parent = 4;
getParent
in interface ResourceOrBuilder
public ByteString getParentBytes()
The full resource name of resource's parent.
string parent = 4;
getParentBytes
in interface ResourceOrBuilder
public Resource.Builder setParent(String value)
The full resource name of resource's parent.
string parent = 4;
value
- The parent to set.public Resource.Builder clearParent()
The full resource name of resource's parent.
string parent = 4;
public Resource.Builder setParentBytes(ByteString value)
The full resource name of resource's parent.
string parent = 4;
value
- The bytes for parent to set.public String getParentDisplayName()
The human readable name of resource's parent.
string parent_display_name = 5;
getParentDisplayName
in interface ResourceOrBuilder
public ByteString getParentDisplayNameBytes()
The human readable name of resource's parent.
string parent_display_name = 5;
getParentDisplayNameBytes
in interface ResourceOrBuilder
public Resource.Builder setParentDisplayName(String value)
The human readable name of resource's parent.
string parent_display_name = 5;
value
- The parentDisplayName to set.public Resource.Builder clearParentDisplayName()
The human readable name of resource's parent.
string parent_display_name = 5;
public Resource.Builder setParentDisplayNameBytes(ByteString value)
The human readable name of resource's parent.
string parent_display_name = 5;
value
- The bytes for parentDisplayName to set.public List<Folder> getFoldersList()
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFoldersList
in interface ResourceOrBuilder
public int getFoldersCount()
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFoldersCount
in interface ResourceOrBuilder
public Folder getFolders(int index)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFolders
in interface ResourceOrBuilder
public Resource.Builder setFolders(int index, Folder value)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder setFolders(int index, Folder.Builder builderForValue)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder addFolders(Folder value)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder addFolders(int index, Folder value)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder addFolders(Folder.Builder builderForValue)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder addFolders(int index, Folder.Builder builderForValue)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder addAllFolders(Iterable<? extends Folder> values)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder clearFolders()
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Resource.Builder removeFolders(int index)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Folder.Builder getFoldersBuilder(int index)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public FolderOrBuilder getFoldersOrBuilder(int index)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFoldersOrBuilder
in interface ResourceOrBuilder
public List<? extends FolderOrBuilder> getFoldersOrBuilderList()
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFoldersOrBuilderList
in interface ResourceOrBuilder
public Folder.Builder addFoldersBuilder()
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Folder.Builder addFoldersBuilder(int index)
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<Folder.Builder> getFoldersBuilderList()
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.