public final class SavedQuery extends GeneratedMessageV3 implements SavedQueryOrBuilder
A saved query which can be shared with others or used later.
Protobuf type google.cloud.asset.v1.SavedQuery
Static Fields
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
CREATOR_FIELD_NUMBER
public static final int CREATOR_FIELD_NUMBER
Field Value
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
LAST_UPDATER_FIELD_NUMBER
public static final int LAST_UPDATER_FIELD_NUMBER
Field Value
LAST_UPDATE_TIME_FIELD_NUMBER
public static final int LAST_UPDATE_TIME_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SavedQuery getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SavedQuery.Builder newBuilder()
Returns
newBuilder(SavedQuery prototype)
public static SavedQuery.Builder newBuilder(SavedQuery prototype)
Parameter
Returns
public static SavedQuery parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SavedQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SavedQuery parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SavedQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SavedQuery parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SavedQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SavedQuery parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SavedQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SavedQuery parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SavedQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SavedQuery parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SavedQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SavedQuery> parser()
Returns
Methods
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;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getContent()
public SavedQuery.QueryContent getContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Returns
getContentOrBuilder()
public SavedQuery.QueryContentOrBuilder getContentOrBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Returns
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];
Returns
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];
Returns
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];
Returns
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];
Returns
getDefaultInstanceForType()
public SavedQuery getDefaultInstanceForType()
Returns
getDescription()
public String getDescription()
The description of this saved query. This value should be fewer than 255
characters.
string description = 2;
Returns
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;
Returns
Type | Description |
ByteString | The bytes for description.
|
getLabels()
public Map<String,String> getLabels()
Returns
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;
Returns
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;
Returns
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;
Parameters
Returns
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;
Parameter
Returns
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];
Returns
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];
Returns
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];
Returns
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];
Returns
Type | Description |
ByteString | The bytes for lastUpdater.
|
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;
Returns
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;
Returns
getParserForType()
public Parser<SavedQuery> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasContent()
public boolean hasContent()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
Returns
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];
Returns
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];
Returns
Type | Description |
boolean | Whether the lastUpdateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SavedQuery.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SavedQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SavedQuery.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions