Class Scope

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.v1.Scope
All Implemented Interfaces:
ScopeOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Scope extends com.google.protobuf.GeneratedMessage implements ScopeOrBuilder
 Scope represents a Scope in a Fleet.
 
Protobuf type google.cloud.gkehub.v1.Scope
See Also:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

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

      public String getName()
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Specified by:
      getName in interface ScopeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name for the scope
       `projects/{project}/locations/{location}/scopes/{scope}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface ScopeOrBuilder
      Returns:
      The bytes for name.
    • getUid

      public String getUid()
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUid in interface ScopeOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. Google-generated UUID for this resource. This is unique across
       all scope resources. If a scope resource is deleted and another resource
       with the same name is created, it gets a different uid.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUidBytes in interface ScopeOrBuilder
      Returns:
      The bytes for uid.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface ScopeOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ScopeOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. When the scope was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ScopeOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface ScopeOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ScopeOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. When the scope was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ScopeOrBuilder
    • hasDeleteTime

      public boolean hasDeleteTime()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDeleteTime in interface ScopeOrBuilder
      Returns:
      Whether the deleteTime field is set.
    • getDeleteTime

      public com.google.protobuf.Timestamp getDeleteTime()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTime in interface ScopeOrBuilder
      Returns:
      The deleteTime.
    • getDeleteTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
       Output only. When the scope was deleted.
       
      .google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDeleteTimeOrBuilder in interface ScopeOrBuilder
    • hasState

      public boolean hasState()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasState in interface ScopeOrBuilder
      Returns:
      Whether the state field is set.
    • getState

      public ScopeLifecycleState getState()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ScopeOrBuilder
      Returns:
      The state.
    • getStateOrBuilder

      public ScopeLifecycleStateOrBuilder getStateOrBuilder()
       Output only. State of the scope resource.
       
      .google.cloud.gkehub.v1.ScopeLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateOrBuilder in interface ScopeOrBuilder
    • getNamespaceLabelsCount

      public int getNamespaceLabelsCount()
      Description copied from interface: ScopeOrBuilder
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsCount in interface ScopeOrBuilder
    • containsNamespaceLabels

      public boolean containsNamespaceLabels(String key)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsNamespaceLabels in interface ScopeOrBuilder
    • getNamespaceLabels

      @Deprecated public Map<String,String> getNamespaceLabels()
      Deprecated.
      Specified by:
      getNamespaceLabels in interface ScopeOrBuilder
    • getNamespaceLabelsMap

      public Map<String,String> getNamespaceLabelsMap()
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsMap in interface ScopeOrBuilder
    • getNamespaceLabelsOrDefault

      public String getNamespaceLabelsOrDefault(String key, String defaultValue)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsOrDefault in interface ScopeOrBuilder
    • getNamespaceLabelsOrThrow

      public String getNamespaceLabelsOrThrow(String key)
       Optional. Scope-level cluster namespace labels. For the member clusters
       bound to the Scope, these labels are applied to each namespace under the
       Scope. Scope-level labels take precedence over Namespace-level
       labels (`namespace_labels` in the Fleet Namespace resource) if they
       share a key. Keys and values must be Kubernetes-conformant.
       
      map<string, string> namespace_labels = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNamespaceLabelsOrThrow in interface ScopeOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ScopeOrBuilder
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ScopeOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ScopeOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ScopeOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ScopeOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ScopeOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels for this Scope.
       
      map<string, string> labels = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ScopeOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 Scope parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static Scope.Builder newBuilder()
    • newBuilder

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

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

      protected Scope.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Scope getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Scope> 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.GeneratedMessage
    • getDefaultInstanceForType

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