Class SavedQuery (3.6.0)

Stay organized with collections Save and categorize content based on your preferences.
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

Implements

SavedQueryOrBuilder

Static Fields

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

CREATOR_FIELD_NUMBER

public static final int CREATOR_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_UPDATER_FIELD_NUMBER

public static final int LAST_UPDATER_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_UPDATE_TIME_FIELD_NUMBER

public static final int LAST_UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SavedQuery getDefaultInstance()
Returns
TypeDescription
SavedQuery

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SavedQuery.Builder newBuilder()
Returns
TypeDescription
SavedQuery.Builder

newBuilder(SavedQuery prototype)

public static SavedQuery.Builder newBuilder(SavedQuery prototype)
Parameter
NameDescription
prototypeSavedQuery
Returns
TypeDescription
SavedQuery.Builder

parseDelimitedFrom(InputStream input)

public static SavedQuery parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SavedQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SavedQuery parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SavedQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SavedQuery parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SavedQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SavedQuery parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SavedQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SavedQuery parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SavedQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SavedQuery parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SavedQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SavedQuery
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SavedQuery> parser()
Returns
TypeDescription
Parser<SavedQuery>

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
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getContent()

public SavedQuery.QueryContent getContent()

The query content.

.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;

Returns
TypeDescription
SavedQuery.QueryContent

The content.

getContentOrBuilder()

public SavedQuery.QueryContentOrBuilder getContentOrBuilder()

The query content.

.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;

Returns
TypeDescription
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];

Returns
TypeDescription
Timestamp

The createTime.

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
TypeDescription
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];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for creator.

getDefaultInstanceForType()

public SavedQuery getDefaultInstanceForType()
Returns
TypeDescription
SavedQuery

getDescription()

public String getDescription()

The description of this saved query. This value should be fewer than 255 characters.

string description = 2;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
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];

Returns
TypeDescription
Timestamp

The lastUpdateTime.

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
TypeDescription
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];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for lastUpdater.

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;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<SavedQuery> getParserForType()
Returns
TypeDescription
Parser<SavedQuery>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasContent()

public boolean hasContent()

The query content.

.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the lastUpdateTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SavedQuery.Builder newBuilderForType()
Returns
TypeDescription
SavedQuery.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SavedQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SavedQuery.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SavedQuery.Builder toBuilder()
Returns
TypeDescription
SavedQuery.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException