Package com.google.cloud.asset.v1
Class SavedQuery.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
- com.google.cloud.asset.v1.SavedQuery.Builder
-
- All Implemented Interfaces:
SavedQueryOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SavedQuery
public static final class SavedQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder> implements SavedQueryOrBuilder
A saved query which can be shared with others or used later.
Protobuf typegoogle.cloud.asset.v1.SavedQuery
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SavedQuery.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedQuery
build()
SavedQuery
buildPartial()
SavedQuery.Builder
clear()
SavedQuery.Builder
clearContent()
The query content.SavedQuery.Builder
clearCreateTime()
Output only.SavedQuery.Builder
clearCreator()
Output only.SavedQuery.Builder
clearDescription()
The description of this saved query.SavedQuery.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SavedQuery.Builder
clearLabels()
SavedQuery.Builder
clearLastUpdater()
Output only.SavedQuery.Builder
clearLastUpdateTime()
Output only.SavedQuery.Builder
clearName()
The resource name of the saved query.SavedQuery.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SavedQuery.Builder
clone()
boolean
containsLabels(String key)
Labels applied on the resource.SavedQuery.QueryContent
getContent()
The query content.SavedQuery.QueryContent.Builder
getContentBuilder()
The query content.SavedQuery.QueryContentOrBuilder
getContentOrBuilder()
The query content.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getCreator()
Output only.com.google.protobuf.ByteString
getCreatorBytes()
Output only.SavedQuery
getDefaultInstanceForType()
String
getDescription()
The description of this saved query.com.google.protobuf.ByteString
getDescriptionBytes()
The description of this saved query.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels applied on the resource.Map<String,String>
getLabelsMap()
Labels applied on the resource.String
getLabelsOrDefault(String key, String defaultValue)
Labels applied on the resource.String
getLabelsOrThrow(String key)
Labels applied on the resource.String
getLastUpdater()
Output only.com.google.protobuf.ByteString
getLastUpdaterBytes()
Output only.com.google.protobuf.Timestamp
getLastUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getLastUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getLastUpdateTimeOrBuilder()
Output only.Map<String,String>
getMutableLabels()
Deprecated.String
getName()
The resource name of the saved query.com.google.protobuf.ByteString
getNameBytes()
The resource name of the saved query.boolean
hasContent()
The query content.boolean
hasCreateTime()
Output only.boolean
hasLastUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
SavedQuery.Builder
mergeContent(SavedQuery.QueryContent value)
The query content.SavedQuery.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.SavedQuery.Builder
mergeFrom(SavedQuery other)
SavedQuery.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SavedQuery.Builder
mergeFrom(com.google.protobuf.Message other)
SavedQuery.Builder
mergeLastUpdateTime(com.google.protobuf.Timestamp value)
Output only.SavedQuery.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SavedQuery.Builder
putAllLabels(Map<String,String> values)
Labels applied on the resource.SavedQuery.Builder
putLabels(String key, String value)
Labels applied on the resource.SavedQuery.Builder
removeLabels(String key)
Labels applied on the resource.SavedQuery.Builder
setContent(SavedQuery.QueryContent value)
The query content.SavedQuery.Builder
setContent(SavedQuery.QueryContent.Builder builderForValue)
The query content.SavedQuery.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.SavedQuery.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.SavedQuery.Builder
setCreator(String value)
Output only.SavedQuery.Builder
setCreatorBytes(com.google.protobuf.ByteString value)
Output only.SavedQuery.Builder
setDescription(String value)
The description of this saved query.SavedQuery.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
The description of this saved query.SavedQuery.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SavedQuery.Builder
setLastUpdater(String value)
Output only.SavedQuery.Builder
setLastUpdaterBytes(com.google.protobuf.ByteString value)
Output only.SavedQuery.Builder
setLastUpdateTime(com.google.protobuf.Timestamp value)
Output only.SavedQuery.Builder
setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.SavedQuery.Builder
setName(String value)
The resource name of the saved query.SavedQuery.Builder
setNameBytes(com.google.protobuf.ByteString value)
The resource name of the saved query.SavedQuery.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SavedQuery.Builder
setUnknownFields(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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
clear
public SavedQuery.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
getDefaultInstanceForType
public SavedQuery getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SavedQuery build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SavedQuery buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SavedQuery.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
setField
public SavedQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
clearField
public SavedQuery.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
clearOneof
public SavedQuery.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
setRepeatedField
public SavedQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
addRepeatedField
public SavedQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
mergeFrom
public SavedQuery.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedQuery.Builder>
-
mergeFrom
public SavedQuery.Builder mergeFrom(SavedQuery other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
mergeFrom
public SavedQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SavedQuery.Builder>
- Throws:
IOException
-
getName
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;
- Specified by:
getName
in interfaceSavedQueryOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfaceSavedQueryOrBuilder
- Returns:
- The bytes for name.
-
setName
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;
- Returns:
- This builder for chaining.
-
setNameBytes
public SavedQuery.Builder setNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
- Specified by:
getDescription
in interfaceSavedQueryOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
- Specified by:
getDescriptionBytes
in interfaceSavedQueryOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public SavedQuery.Builder setDescription(String value)
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public SavedQuery.Builder clearDescription()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public SavedQuery.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceSavedQueryOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceSavedQueryOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public SavedQuery.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public SavedQuery.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public SavedQuery.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceSavedQueryOrBuilder
-
getCreator
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];
- Specified by:
getCreator
in interfaceSavedQueryOrBuilder
- Returns:
- The creator.
-
getCreatorBytes
public com.google.protobuf.ByteString getCreatorBytes()
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreatorBytes
in interfaceSavedQueryOrBuilder
- Returns:
- The bytes for creator.
-
setCreator
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];
- Parameters:
value
- The creator to set.- Returns:
- This builder for chaining.
-
clearCreator
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];
- Returns:
- This builder for chaining.
-
setCreatorBytes
public SavedQuery.Builder setCreatorBytes(com.google.protobuf.ByteString value)
Output only. The account's email address who has created this saved query.
string creator = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The bytes for creator to set.- Returns:
- This builder for chaining.
-
hasLastUpdateTime
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];
- Specified by:
hasLastUpdateTime
in interfaceSavedQueryOrBuilder
- Returns:
- Whether the lastUpdateTime field is set.
-
getLastUpdateTime
public com.google.protobuf.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];
- Specified by:
getLastUpdateTime
in interfaceSavedQueryOrBuilder
- Returns:
- The lastUpdateTime.
-
setLastUpdateTime
public SavedQuery.Builder setLastUpdateTime(com.google.protobuf.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];
-
setLastUpdateTime
public SavedQuery.Builder setLastUpdateTime(com.google.protobuf.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];
-
mergeLastUpdateTime
public SavedQuery.Builder mergeLastUpdateTime(com.google.protobuf.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];
-
clearLastUpdateTime
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];
-
getLastUpdateTimeBuilder
public com.google.protobuf.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];
-
getLastUpdateTimeOrBuilder
public com.google.protobuf.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];
- Specified by:
getLastUpdateTimeOrBuilder
in interfaceSavedQueryOrBuilder
-
getLastUpdater
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];
- Specified by:
getLastUpdater
in interfaceSavedQueryOrBuilder
- Returns:
- The lastUpdater.
-
getLastUpdaterBytes
public com.google.protobuf.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];
- Specified by:
getLastUpdaterBytes
in interfaceSavedQueryOrBuilder
- Returns:
- The bytes for lastUpdater.
-
setLastUpdater
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];
- Parameters:
value
- The lastUpdater to set.- Returns:
- This builder for chaining.
-
clearLastUpdater
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];
- Returns:
- This builder for chaining.
-
setLastUpdaterBytes
public SavedQuery.Builder setLastUpdaterBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for lastUpdater to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface: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;
- Specified by:
getLabelsCount
in interfaceSavedQueryOrBuilder
-
containsLabels
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;
- Specified by:
containsLabels
in interfaceSavedQueryOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceSavedQueryOrBuilder
-
getLabelsMap
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;
- Specified by:
getLabelsMap
in interfaceSavedQueryOrBuilder
-
getLabelsOrDefault
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;
- Specified by:
getLabelsOrDefault
in interfaceSavedQueryOrBuilder
-
getLabelsOrThrow
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;
- Specified by:
getLabelsOrThrow
in interfaceSavedQueryOrBuilder
-
clearLabels
public SavedQuery.Builder clearLabels()
-
removeLabels
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;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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;
-
putAllLabels
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;
-
hasContent
public boolean hasContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
- Specified by:
hasContent
in interfaceSavedQueryOrBuilder
- Returns:
- Whether the content field is set.
-
getContent
public SavedQuery.QueryContent getContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
- Specified by:
getContent
in interfaceSavedQueryOrBuilder
- Returns:
- The content.
-
setContent
public SavedQuery.Builder setContent(SavedQuery.QueryContent value)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
-
setContent
public SavedQuery.Builder setContent(SavedQuery.QueryContent.Builder builderForValue)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
-
mergeContent
public SavedQuery.Builder mergeContent(SavedQuery.QueryContent value)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
-
clearContent
public SavedQuery.Builder clearContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
-
getContentBuilder
public SavedQuery.QueryContent.Builder getContentBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
-
getContentOrBuilder
public SavedQuery.QueryContentOrBuilder getContentOrBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
- Specified by:
getContentOrBuilder
in interfaceSavedQueryOrBuilder
-
setUnknownFields
public final SavedQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
mergeUnknownFields
public final SavedQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SavedQuery.Builder>
-
-