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.securitycenter.v1p1beta1.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
Information related to the Google Cloud resource.Protobuf type
google.cloud.securitycenter.v1p1beta1.Resource-
Method Summary
Modifier and TypeMethodDescriptionaddAllFolders(Iterable<? extends Folder> values) Output only.addFolders(int index, Folder value) Output only.addFolders(int index, Folder.Builder builderForValue) Output only.addFolders(Folder value) Output only.addFolders(Folder.Builder builderForValue) Output only.Output only.addFoldersBuilder(int index) Output only.build()clear()Output only.The full resource name of the resource.The full resource name of resource's parent.The human readable name of resource's parent.The full resource name of project that the resource belongs to.The human readable name of project that the resource belongs to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFolders(int index) Output only.getFoldersBuilder(int index) Output only.Output only.intOutput only.Output only.getFoldersOrBuilder(int index) Output only.List<? extends FolderOrBuilder>Output only.getName()The full resource name of the resource.com.google.protobuf.ByteStringThe full resource name of the resource.The full resource name of resource's parent.com.google.protobuf.ByteStringThe full resource name of resource's parent.The human readable name of resource's parent.com.google.protobuf.ByteStringThe human readable name of resource's parent.The full resource name of project that the resource belongs to.com.google.protobuf.ByteStringThe full resource name of project that the resource belongs to.The human readable name of project that the resource belongs to.com.google.protobuf.ByteStringThe human readable name of project that the resource belongs to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFolders(int index) Output only.setFolders(int index, Folder value) Output only.setFolders(int index, Folder.Builder builderForValue) Output only.The full resource name of the resource.setNameBytes(com.google.protobuf.ByteString value) The full resource name of the resource.The full resource name of resource's parent.setParentBytes(com.google.protobuf.ByteString value) The full resource name of resource's parent.setParentDisplayName(String value) The human readable name of resource's parent.setParentDisplayNameBytes(com.google.protobuf.ByteString value) The human readable name of resource's parent.setProject(String value) The full resource name of project that the resource belongs to.setProjectBytes(com.google.protobuf.ByteString value) The full resource name of project that the resource belongs to.setProjectDisplayName(String value) The human readable name of project that the resource belongs to.setProjectDisplayNameBytes(com.google.protobuf.ByteString value) The human readable name of project that the resource belongs to.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
-
getName
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;- Specified by:
getNamein interfaceResourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;- Specified by:
getNameBytesin interfaceResourceOrBuilder- Returns:
- The bytes for name.
-
setName
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getProject
The full resource name of project that the resource belongs to.
string project = 2;- Specified by:
getProjectin interfaceResourceOrBuilder- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()The full resource name of project that the resource belongs to.
string project = 2;- Specified by:
getProjectBytesin interfaceResourceOrBuilder- Returns:
- The bytes for project.
-
setProject
The full resource name of project that the resource belongs to.
string project = 2;- Parameters:
value- The project to set.- Returns:
- This builder for chaining.
-
clearProject
The full resource name of project that the resource belongs to.
string project = 2;- Returns:
- This builder for chaining.
-
setProjectBytes
The full resource name of project that the resource belongs to.
string project = 2;- Parameters:
value- The bytes for project to set.- Returns:
- This builder for chaining.
-
getProjectDisplayName
The human readable name of project that the resource belongs to.
string project_display_name = 3;- Specified by:
getProjectDisplayNamein interfaceResourceOrBuilder- Returns:
- The projectDisplayName.
-
getProjectDisplayNameBytes
public com.google.protobuf.ByteString getProjectDisplayNameBytes()The human readable name of project that the resource belongs to.
string project_display_name = 3;- Specified by:
getProjectDisplayNameBytesin interfaceResourceOrBuilder- Returns:
- The bytes for projectDisplayName.
-
setProjectDisplayName
The human readable name of project that the resource belongs to.
string project_display_name = 3;- Parameters:
value- The projectDisplayName to set.- Returns:
- This builder for chaining.
-
clearProjectDisplayName
The human readable name of project that the resource belongs to.
string project_display_name = 3;- Returns:
- This builder for chaining.
-
setProjectDisplayNameBytes
The human readable name of project that the resource belongs to.
string project_display_name = 3;- Parameters:
value- The bytes for projectDisplayName to set.- Returns:
- This builder for chaining.
-
getParent
The full resource name of resource's parent.
string parent = 4;- Specified by:
getParentin interfaceResourceOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()The full resource name of resource's parent.
string parent = 4;- Specified by:
getParentBytesin interfaceResourceOrBuilder- Returns:
- The bytes for parent.
-
setParent
The full resource name of resource's parent.
string parent = 4;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
The full resource name of resource's parent.
string parent = 4;- Returns:
- This builder for chaining.
-
setParentBytes
The full resource name of resource's parent.
string parent = 4;- Parameters:
value- The bytes for parent to set.- Returns:
- This builder for chaining.
-
getParentDisplayName
The human readable name of resource's parent.
string parent_display_name = 5;- Specified by:
getParentDisplayNamein interfaceResourceOrBuilder- Returns:
- The parentDisplayName.
-
getParentDisplayNameBytes
public com.google.protobuf.ByteString getParentDisplayNameBytes()The human readable name of resource's parent.
string parent_display_name = 5;- Specified by:
getParentDisplayNameBytesin interfaceResourceOrBuilder- Returns:
- The bytes for parentDisplayName.
-
setParentDisplayName
The human readable name of resource's parent.
string parent_display_name = 5;- Parameters:
value- The parentDisplayName to set.- Returns:
- This builder for chaining.
-
clearParentDisplayName
The human readable name of resource's parent.
string parent_display_name = 5;- Returns:
- This builder for chaining.
-
setParentDisplayNameBytes
The human readable name of resource's parent.
string parent_display_name = 5;- Parameters:
value- The bytes for parentDisplayName to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getFoldersListin interfaceResourceOrBuilder
-
getFoldersCount
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];- Specified by:
getFoldersCountin interfaceResourceOrBuilder
-
getFolders
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];- Specified by:
getFoldersin interfaceResourceOrBuilder
-
setFolders
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]; -
setFolders
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]; -
addFolders
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]; -
addFolders
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]; -
addFolders
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]; -
addFolders
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]; -
addAllFolders
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]; -
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]; -
removeFolders
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]; -
getFoldersBuilder
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
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];- Specified by:
getFoldersOrBuilderin interfaceResourceOrBuilder
-
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];- Specified by:
getFoldersOrBuilderListin interfaceResourceOrBuilder
-
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]; -
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]; -
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];
-