- 3.55.0 (latest)
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.2-SNAPSHOT
- 3.6.0
- 3.4.1
- 3.3.1
- 3.2.17
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SavedQuery.BuilderImplements
SavedQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SavedQuery.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
SavedQuery.Builder |
build()
public SavedQuery build()
Type | Description |
SavedQuery |
buildPartial()
public SavedQuery buildPartial()
Type | Description |
SavedQuery |
clear()
public SavedQuery.Builder clear()
Type | Description |
SavedQuery.Builder |
clearContent()
public SavedQuery.Builder clearContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Type | Description |
SavedQuery.Builder |
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];
Type | Description |
SavedQuery.Builder |
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];
Type | Description |
SavedQuery.Builder |
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;
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SavedQuery.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
SavedQuery.Builder |
clearLabels()
public SavedQuery.Builder clearLabels()
Type | Description |
SavedQuery.Builder |
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];
Type | Description |
SavedQuery.Builder |
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];
Type | Description |
SavedQuery.Builder |
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;
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SavedQuery.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
SavedQuery.Builder |
clone()
public SavedQuery.Builder clone()
Type | Description |
SavedQuery.Builder |
containsLabels(String key)
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;
Name | Description |
key |
String |
Type | Description |
boolean |
getContent()
public SavedQuery.QueryContent getContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Type | Description |
SavedQuery.QueryContent |
The content. |
getContentBuilder()
public SavedQuery.QueryContent.Builder getContentBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Type | Description |
SavedQuery.QueryContent.Builder |
getContentOrBuilder()
public SavedQuery.QueryContentOrBuilder getContentOrBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Type | Description |
SavedQuery.QueryContentOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
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];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The create time of this saved query.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
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];
Type | Description |
String |
The creator. |
getCreatorBytes()
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];
Type | Description |
ByteString |
The bytes for creator. |
getDefaultInstanceForType()
public SavedQuery getDefaultInstanceForType()
Type | Description |
SavedQuery |
getDescription()
public String getDescription()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
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;
Type | Description |
int |
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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
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;
Name | Description |
key |
String |
defaultValue |
String |
Type | Description |
String |
getLabelsOrThrow(String key)
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;
Name | Description |
key |
String |
Type | Description |
String |
getLastUpdateTime()
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];
Type | Description |
Timestamp |
The lastUpdateTime. |
getLastUpdateTimeBuilder()
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];
Type | Description |
Builder |
getLastUpdateTimeOrBuilder()
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];
Type | Description |
TimestampOrBuilder |
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];
Type | Description |
String |
The lastUpdater. |
getLastUpdaterBytes()
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];
Type | Description |
ByteString |
The bytes for lastUpdater. |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
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;
Type | Description |
String |
The name. |
getNameBytes()
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;
Type | Description |
ByteString |
The bytes for name. |
hasContent()
public boolean hasContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Type | Description |
boolean |
Whether the content field is set. |
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];
Type | Description |
boolean |
Whether the createTime field is set. |
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];
Type | Description |
boolean |
Whether the lastUpdateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number |
int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeContent(SavedQuery.QueryContent value)
public SavedQuery.Builder mergeContent(SavedQuery.QueryContent value)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Name | Description |
value |
SavedQuery.QueryContent |
Type | Description |
SavedQuery.Builder |
mergeCreateTime(Timestamp value)
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];
Name | Description |
value |
Timestamp |
Type | Description |
SavedQuery.Builder |
mergeFrom(SavedQuery other)
public SavedQuery.Builder mergeFrom(SavedQuery other)
Name | Description |
other |
SavedQuery |
Type | Description |
SavedQuery.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SavedQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
SavedQuery.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SavedQuery.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
SavedQuery.Builder |
mergeLastUpdateTime(Timestamp value)
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];
Name | Description |
value |
Timestamp |
Type | Description |
SavedQuery.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SavedQuery.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
SavedQuery.Builder |
putAllLabels(Map<String,String> values)
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;
Name | Description |
values |
Map<String,String> |
Type | Description |
SavedQuery.Builder |
putLabels(String key, String value)
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;
Name | Description |
key |
String |
value |
String |
Type | Description |
SavedQuery.Builder |
removeLabels(String key)
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;
Name | Description |
key |
String |
Type | Description |
SavedQuery.Builder |
setContent(SavedQuery.QueryContent value)
public SavedQuery.Builder setContent(SavedQuery.QueryContent value)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Name | Description |
value |
SavedQuery.QueryContent |
Type | Description |
SavedQuery.Builder |
setContent(SavedQuery.QueryContent.Builder builderForValue)
public SavedQuery.Builder setContent(SavedQuery.QueryContent.Builder builderForValue)
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Name | Description |
builderForValue |
SavedQuery.QueryContent.Builder |
Type | Description |
SavedQuery.Builder |
setCreateTime(Timestamp value)
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];
Name | Description |
value |
Timestamp |
Type | Description |
SavedQuery.Builder |
setCreateTime(Timestamp.Builder builderForValue)
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];
Name | Description |
builderForValue |
Builder |
Type | Description |
SavedQuery.Builder |
setCreator(String value)
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];
Name | Description |
value |
String The creator to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setCreatorBytes(ByteString value)
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];
Name | Description |
value |
ByteString The bytes for creator to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setDescription(String value)
public SavedQuery.Builder setDescription(String value)
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
Name | Description |
value |
String The description to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public SavedQuery.Builder setDescriptionBytes(ByteString value)
The description of this saved query. This value should be fewer than 255 characters.
string description = 2;
Name | Description |
value |
ByteString The bytes for description to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SavedQuery.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
SavedQuery.Builder |
setLastUpdateTime(Timestamp value)
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];
Name | Description |
value |
Timestamp |
Type | Description |
SavedQuery.Builder |
setLastUpdateTime(Timestamp.Builder builderForValue)
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];
Name | Description |
builderForValue |
Builder |
Type | Description |
SavedQuery.Builder |
setLastUpdater(String value)
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];
Name | Description |
value |
String The lastUpdater to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setLastUpdaterBytes(ByteString value)
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];
Name | Description |
value |
ByteString The bytes for lastUpdater to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setName(String value)
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;
Name | Description |
value |
String The name to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
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;
Name | Description |
value |
ByteString The bytes for name to set. |
Type | Description |
SavedQuery.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SavedQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
SavedQuery.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SavedQuery.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
SavedQuery.Builder |