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
Modifier and Type | Class and Description |
---|---|
static class |
SavedQuery.Builder
A saved query which can be shared with others or used later.
|
static class |
SavedQuery.QueryContent
The query content.
|
static interface |
SavedQuery.QueryContentOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
CONTENT_FIELD_NUMBER |
static int |
CREATE_TIME_FIELD_NUMBER |
static int |
CREATOR_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LAST_UPDATE_TIME_FIELD_NUMBER |
static int |
LAST_UPDATER_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
public static final int CREATOR_FIELD_NUMBER
public static final int LAST_UPDATE_TIME_FIELD_NUMBER
public static final int LAST_UPDATER_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField
in class GeneratedMessageV3
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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 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 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.QueryContentOrBuilder getContentOrBuilder()
The query content.
.google.cloud.asset.v1.SavedQuery.QueryContent content = 8;
getContentOrBuilder
in interface SavedQueryOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static SavedQuery parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SavedQuery parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SavedQuery parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SavedQuery parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SavedQuery parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SavedQuery parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static SavedQuery parseFrom(InputStream input) throws IOException
IOException
public static SavedQuery parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SavedQuery parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SavedQuery parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SavedQuery parseFrom(CodedInputStream input) throws IOException
IOException
public static SavedQuery parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SavedQuery.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static SavedQuery.Builder newBuilder()
public static SavedQuery.Builder newBuilder(SavedQuery prototype)
public SavedQuery.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected SavedQuery.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static SavedQuery getDefaultInstance()
public static Parser<SavedQuery> parser()
public Parser<SavedQuery> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public SavedQuery getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.