Class AnywhereCache

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.storage.control.v2.AnywhereCache
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AnywhereCacheOrBuilder, Serializable

public final class AnywhereCache extends com.google.protobuf.GeneratedMessageV3 implements AnywhereCacheOrBuilder
 An Anywhere Cache Instance.
 
Protobuf type google.storage.control.v2.AnywhereCache
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    An Anywhere Cache Instance.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Cache admission policy.
    com.google.protobuf.ByteString
    Cache admission policy.
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Immutable.
    com.google.protobuf.ByteString
    Immutable.
    com.google.protobuf.Parser<AnywhereCache>
     
    boolean
    Output only.
    int
     
    Output only.
    com.google.protobuf.ByteString
    Output only.
    com.google.protobuf.Duration
    Cache entry TTL (ranges between 1h to 7d).
    com.google.protobuf.DurationOrBuilder
    Cache entry TTL (ranges between 1h to 7d).
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    Immutable.
    com.google.protobuf.ByteString
    Immutable.
    boolean
    Output only.
    int
     
    boolean
    Cache entry TTL (ranges between 1h to 7d).
    boolean
    Output only.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AnywhereCache>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getName

      public String getName()
       Immutable. The resource name of this AnywhereCache.
       Format:
       `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface AnywhereCacheOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Immutable. The resource name of this AnywhereCache.
       Format:
       `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
       
      string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNameBytes in interface AnywhereCacheOrBuilder
      Returns:
      The bytes for name.
    • getZone

      public String getZone()
       Immutable. The zone in which the cache instance is running. For example,
       us-central1-a.
       
      string zone = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getZone in interface AnywhereCacheOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Immutable. The zone in which the cache instance is running. For example,
       us-central1-a.
       
      string zone = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getZoneBytes in interface AnywhereCacheOrBuilder
      Returns:
      The bytes for zone.
    • hasTtl

      public boolean hasTtl()
       Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
       that defines how long a cache entry can live. Default ttl value (24hrs)
       is applied if not specified in the create request. TTL must be in whole
       seconds.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      hasTtl in interface AnywhereCacheOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
       that defines how long a cache entry can live. Default ttl value (24hrs)
       is applied if not specified in the create request. TTL must be in whole
       seconds.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      getTtl in interface AnywhereCacheOrBuilder
      Returns:
      The ttl.
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
       that defines how long a cache entry can live. Default ttl value (24hrs)
       is applied if not specified in the create request. TTL must be in whole
       seconds.
       
      .google.protobuf.Duration ttl = 3;
      Specified by:
      getTtlOrBuilder in interface AnywhereCacheOrBuilder
    • getAdmissionPolicy

      public String getAdmissionPolicy()
       Cache admission policy. Valid policies includes:
       `admit-on-first-miss` and `admit-on-second-miss`. Defaults to
       `admit-on-first-miss`. Default value is applied if not specified in the
       create request.
       
      string admission_policy = 9;
      Specified by:
      getAdmissionPolicy in interface AnywhereCacheOrBuilder
      Returns:
      The admissionPolicy.
    • getAdmissionPolicyBytes

      public com.google.protobuf.ByteString getAdmissionPolicyBytes()
       Cache admission policy. Valid policies includes:
       `admit-on-first-miss` and `admit-on-second-miss`. Defaults to
       `admit-on-first-miss`. Default value is applied if not specified in the
       create request.
       
      string admission_policy = 9;
      Specified by:
      getAdmissionPolicyBytes in interface AnywhereCacheOrBuilder
      Returns:
      The bytes for admissionPolicy.
    • getState

      public String getState()
       Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
       
      string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface AnywhereCacheOrBuilder
      Returns:
      The state.
    • getStateBytes

      public com.google.protobuf.ByteString getStateBytes()
       Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
       
      string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateBytes in interface AnywhereCacheOrBuilder
      Returns:
      The bytes for state.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when Anywhere cache instance is allocated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AnywhereCacheOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when Anywhere cache instance is allocated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AnywhereCacheOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when Anywhere cache instance is allocated.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AnywhereCacheOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time when Anywhere cache instance is last updated, including
       creation.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AnywhereCacheOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time when Anywhere cache instance is last updated, including
       creation.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AnywhereCacheOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time when Anywhere cache instance is last updated, including
       creation.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AnywhereCacheOrBuilder
    • getPendingUpdate

      public boolean getPendingUpdate()
       Output only. True if there is an active update operation against this cache
       instance. Subsequential update requests will be rejected if this field is
       true. Output only.
       
      bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPendingUpdate in interface AnywhereCacheOrBuilder
      Returns:
      The pendingUpdate.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AnywhereCache parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnywhereCache parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnywhereCache parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnywhereCache parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnywhereCache parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnywhereCache parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnywhereCache parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnywhereCache parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnywhereCache parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnywhereCache parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnywhereCache parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnywhereCache parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AnywhereCache.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AnywhereCache.Builder newBuilder()
    • newBuilder

      public static AnywhereCache.Builder newBuilder(AnywhereCache prototype)
    • toBuilder

      public AnywhereCache.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AnywhereCache.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static AnywhereCache getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnywhereCache> parser()
    • getParserForType

      public com.google.protobuf.Parser<AnywhereCache> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public AnywhereCache getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder