public static final class SavedQuery.Builder extends GeneratedMessageV3.Builder<SavedQuery.Builder> implements SavedQueryOrBuilder
A saved query which can be shared with others or used later.Protobuf type
google.cloud.asset.v1.SavedQuery
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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 MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
protected MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SavedQuery build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SavedQuery buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SavedQuery.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SavedQuery.Builder>
public SavedQuery.Builder mergeFrom(SavedQuery other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public SavedQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SavedQuery.Builder>
IOException
public String getName()
The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
string name = 1;
getName
in interface SavedQueryOrBuilder
public ByteString getNameBytes()
The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
string name = 1;
getNameBytes
in interface SavedQueryOrBuilder
public SavedQuery.Builder setName(String value)
The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
string name = 1;
value
- The name to set.public SavedQuery.Builder clearName()
The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
string name = 1;
public SavedQuery.Builder setNameBytes(ByteString value)
The resource name of the saved query. The format must be: * projects/project_number/savedQueries/saved_query_id * folders/folder_number/savedQueries/saved_query_id * organizations/organization_number/savedQueries/saved_query_id
string name = 1;
value
- The bytes for name to set.public String getDescription()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
getDescription
in interface SavedQueryOrBuilder
public ByteString getDescriptionBytes()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
getDescriptionBytes
in interface SavedQueryOrBuilder
public SavedQuery.Builder setDescription(String value)
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
value
- The description to set.public SavedQuery.Builder clearDescription()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
public SavedQuery.Builder setDescriptionBytes(ByteString value)
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
value
- The bytes for description to set.public boolean hasCreateTime()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime
in interface SavedQueryOrBuilder
public Timestamp getCreateTime()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime
in interface SavedQueryOrBuilder
public SavedQuery.Builder setCreateTime(Timestamp value)
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder mergeCreateTime(Timestamp value)
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder clearCreateTime()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getCreateTimeBuilder()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder
in interface SavedQueryOrBuilder
public String getCreator()
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreator
in interface SavedQueryOrBuilder
public ByteString getCreatorBytes()
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreatorBytes
in interface SavedQueryOrBuilder
public SavedQuery.Builder setCreator(String value)
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The creator to set.public SavedQuery.Builder clearCreator()
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder setCreatorBytes(ByteString value)
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for creator to set.public boolean hasLastUpdateTime()
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasLastUpdateTime
in interface SavedQueryOrBuilder
public Timestamp getLastUpdateTime()
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLastUpdateTime
in interface SavedQueryOrBuilder
public SavedQuery.Builder setLastUpdateTime(Timestamp value)
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder setLastUpdateTime(Timestamp.Builder builderForValue)
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder mergeLastUpdateTime(Timestamp value)
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder clearLastUpdateTime()
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Timestamp.Builder getLastUpdateTimeBuilder()
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
public TimestampOrBuilder getLastUpdateTimeOrBuilder()
Output only. The last update time of this saved query.
.google.protobuf.Timestamp last_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLastUpdateTimeOrBuilder
in interface SavedQueryOrBuilder
public String getLastUpdater()
Output only. The account's email address who has updated this saved query most recently.
string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLastUpdater
in interface SavedQueryOrBuilder
public ByteString getLastUpdaterBytes()
Output only. The account's email address who has updated this saved query most recently.
string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getLastUpdaterBytes
in interface SavedQueryOrBuilder
public SavedQuery.Builder setLastUpdater(String value)
Output only. The account's email address who has updated this saved query most recently.
string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The lastUpdater to set.public SavedQuery.Builder clearLastUpdater()
Output only. The account's email address who has updated this saved query most recently.
string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
public SavedQuery.Builder setLastUpdaterBytes(ByteString value)
Output only. The account's email address who has updated this saved query most recently.
string last_updater = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
value
- The bytes for lastUpdater to set.public int getLabelsCount()
SavedQueryOrBuilder
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
getLabelsCount
in interface SavedQueryOrBuilder
public boolean containsLabels(String key)
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
containsLabels
in interface SavedQueryOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface SavedQueryOrBuilder
public Map<String,String> getLabelsMap()
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
getLabelsMap
in interface SavedQueryOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
getLabelsOrDefault
in interface SavedQueryOrBuilder
public String getLabelsOrThrow(String key)
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
getLabelsOrThrow
in interface SavedQueryOrBuilder
public SavedQuery.Builder clearLabels()
public SavedQuery.Builder removeLabels(String key)
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
@Deprecated public Map<String,String> getMutableLabels()
public SavedQuery.Builder putLabels(String key, String value)
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
public SavedQuery.Builder putAllLabels(Map<String,String> values)
Labels applied on the resource. This value should not contain more than 10 entries. The key and value of each entry must be non-empty and fewer than 64 characters.
map<string, string> labels = 7;
public boolean hasContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
hasContent
in interface SavedQueryOrBuilder
public SavedQuery.QueryContent getContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
getContent
in interface SavedQueryOrBuilder
public SavedQuery.Builder setContent(SavedQuery.QueryContent value)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
public SavedQuery.Builder setContent(SavedQuery.QueryContent.Builder builderForValue)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
public SavedQuery.Builder mergeContent(SavedQuery.QueryContent value)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
public SavedQuery.Builder clearContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
public SavedQuery.QueryContent.Builder getContentBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
public SavedQuery.QueryContentOrBuilder getContentOrBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
getContentOrBuilder
in interface SavedQueryOrBuilder
public final SavedQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
public final SavedQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SavedQuery.Builder>
Copyright © 2022 Google LLC. All rights reserved.