Class Resource.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Resource.Builder> implements ResourceOrBuilder
Information related to the Google Cloud resource.
Protobuf typegoogle.cloud.securitycenter.v1p1beta1.Resource
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Resource.BuilderaddAllFolders(Iterable<? extends Folder> values)Output only.Resource.BuilderaddFolders(int index, Folder value)Output only.Resource.BuilderaddFolders(int index, Folder.Builder builderForValue)Output only.Resource.BuilderaddFolders(Folder value)Output only.Resource.BuilderaddFolders(Folder.Builder builderForValue)Output only.Folder.BuilderaddFoldersBuilder()Output only.Folder.BuilderaddFoldersBuilder(int index)Output only.Resource.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Resourcebuild()ResourcebuildPartial()Resource.Builderclear()Resource.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Resource.BuilderclearFolders()Output only.Resource.BuilderclearName()The full resource name of the resource.Resource.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Resource.BuilderclearParent()The full resource name of resource's parent.Resource.BuilderclearParentDisplayName()The human readable name of resource's parent.Resource.BuilderclearProject()The full resource name of project that the resource belongs to.Resource.BuilderclearProjectDisplayName()The human readable name of project that the resource belongs to.Resource.Builderclone()ResourcegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()FoldergetFolders(int index)Output only.Folder.BuildergetFoldersBuilder(int index)Output only.List<Folder.Builder>getFoldersBuilderList()Output only.intgetFoldersCount()Output only.List<Folder>getFoldersList()Output only.FolderOrBuildergetFoldersOrBuilder(int index)Output only.List<? extends FolderOrBuilder>getFoldersOrBuilderList()Output only.StringgetName()The full resource name of the resource.com.google.protobuf.ByteStringgetNameBytes()The full resource name of the resource.StringgetParent()The full resource name of resource's parent.com.google.protobuf.ByteStringgetParentBytes()The full resource name of resource's parent.StringgetParentDisplayName()The human readable name of resource's parent.com.google.protobuf.ByteStringgetParentDisplayNameBytes()The human readable name of resource's parent.StringgetProject()The full resource name of project that the resource belongs to.com.google.protobuf.ByteStringgetProjectBytes()The full resource name of project that the resource belongs to.StringgetProjectDisplayName()The human readable name of project that the resource belongs to.com.google.protobuf.ByteStringgetProjectDisplayNameBytes()The human readable name of project that the resource belongs to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Resource.BuildermergeFrom(Resource other)Resource.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Resource.BuildermergeFrom(com.google.protobuf.Message other)Resource.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Resource.BuilderremoveFolders(int index)Output only.Resource.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Resource.BuildersetFolders(int index, Folder value)Output only.Resource.BuildersetFolders(int index, Folder.Builder builderForValue)Output only.Resource.BuildersetName(String value)The full resource name of the resource.Resource.BuildersetNameBytes(com.google.protobuf.ByteString value)The full resource name of the resource.Resource.BuildersetParent(String value)The full resource name of resource's parent.Resource.BuildersetParentBytes(com.google.protobuf.ByteString value)The full resource name of resource's parent.Resource.BuildersetParentDisplayName(String value)The human readable name of resource's parent.Resource.BuildersetParentDisplayNameBytes(com.google.protobuf.ByteString value)The human readable name of resource's parent.Resource.BuildersetProject(String value)The full resource name of project that the resource belongs to.Resource.BuildersetProjectBytes(com.google.protobuf.ByteString value)The full resource name of project that the resource belongs to.Resource.BuildersetProjectDisplayName(String value)The human readable name of project that the resource belongs to.Resource.BuildersetProjectDisplayNameBytes(com.google.protobuf.ByteString value)The human readable name of project that the resource belongs to.Resource.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Resource.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clear
public Resource.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Resource.Builder>
-
getDefaultInstanceForType
public Resource getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Resource build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Resource buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Resource.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
setField
public Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearField
public Resource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
clearOneof
public Resource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
setRepeatedField
public Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
addRepeatedField
public Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Resource.Builder>
-
mergeFrom
public Resource.Builder mergeFrom(Resource other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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;- 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
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
public Resource.Builder setNameBytes(com.google.protobuf.ByteString value)
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
public String 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
public Resource.Builder setProject(String value)
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
public Resource.Builder clearProject()
The full resource name of project that the resource belongs to.
string project = 2;- Returns:
- This builder for chaining.
-
setProjectBytes
public Resource.Builder setProjectBytes(com.google.protobuf.ByteString value)
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
public String 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
public Resource.Builder setProjectDisplayName(String value)
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
public Resource.Builder clearProjectDisplayName()
The human readable name of project that the resource belongs to.
string project_display_name = 3;- Returns:
- This builder for chaining.
-
setProjectDisplayNameBytes
public Resource.Builder setProjectDisplayNameBytes(com.google.protobuf.ByteString value)
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
public String 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
public Resource.Builder setParent(String value)
The full resource name of resource's parent.
string parent = 4;- Parameters:
value- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public Resource.Builder clearParent()
The full resource name of resource's parent.
string parent = 4;- Returns:
- This builder for chaining.
-
setParentBytes
public Resource.Builder setParentBytes(com.google.protobuf.ByteString value)
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
public String 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
public Resource.Builder setParentDisplayName(String value)
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
public Resource.Builder clearParentDisplayName()
The human readable name of resource's parent.
string parent_display_name = 5;- Returns:
- This builder for chaining.
-
setParentDisplayNameBytes
public Resource.Builder setParentDisplayNameBytes(com.google.protobuf.ByteString value)
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
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];- 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
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];- Specified by:
getFoldersin interfaceResourceOrBuilder
-
setFolders
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];
-
setFolders
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];
-
addFolders
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];
-
addFolders
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];
-
addFolders
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];
-
addFolders
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];
-
addAllFolders
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];
-
clearFolders
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];
-
removeFolders
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];
-
getFoldersBuilder
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];
-
getFoldersOrBuilder
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];- Specified by:
getFoldersOrBuilderin interfaceResourceOrBuilder
-
getFoldersOrBuilderList
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];- Specified by:
getFoldersOrBuilderListin interfaceResourceOrBuilder
-
addFoldersBuilder
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];
-
addFoldersBuilder
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];
-
getFoldersBuilderList
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];
-
setUnknownFields
public final Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
mergeUnknownFields
public final Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Resource.Builder>
-
-