Package com.google.cloud.gkehub.v1
Interface NamespaceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Namespace,Namespace.Builder
@Generated
public interface NamespaceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.booleanOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.getName()The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}`com.google.protobuf.ByteStringThe resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}`Deprecated.intOptional.Optional.getNamespaceLabelsOrDefault(String key, String defaultValue) Optional.Optional.getScope()Required.com.google.protobuf.ByteStringRequired.getState()Output only.Output only.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanhasState()Output only.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}`string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The resource name for the namespace `projects/{project}/locations/{location}/namespaces/{namespace}`string name = 1;- Returns:
- The bytes for name.
-
getUid
String getUid()Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace 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];- Returns:
- The uid.
-
getUidBytes
com.google.protobuf.ByteString getUidBytes()Output only. Google-generated UUID for this resource. This is unique across all namespace resources. If a namespace 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];- Returns:
- The bytes for uid.
-
hasCreateTime
boolean hasCreateTime()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasUpdateTime
boolean hasUpdateTime()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
com.google.protobuf.Timestamp getUpdateTime()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasDeleteTime
boolean hasDeleteTime()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the deleteTime field is set.
-
getDeleteTime
com.google.protobuf.Timestamp getDeleteTime()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The deleteTime.
-
getDeleteTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
hasState
boolean hasState()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the state field is set.
-
getState
NamespaceLifecycleState getState()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
getStateOrBuilder
NamespaceLifecycleStateOrBuilder getStateOrBuilder()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getScope
String getScope()Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The scope.
-
getScopeBytes
com.google.protobuf.ByteString getScopeBytes()Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for scope.
-
getNamespaceLabelsCount
int getNamespaceLabelsCount()Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
containsNamespaceLabels
Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getNamespaceLabels
Deprecated.UsegetNamespaceLabelsMap()instead. -
getNamespaceLabelsMap
Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getNamespaceLabelsOrDefault
Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getNamespaceLabelsOrThrow
Optional. Namespace-level cluster namespace labels. These labels are applied to the related namespace of the member clusters bound to the parent Scope. Scope-level labels (`namespace_labels` in the Fleet Scope resource) take precedence over Namespace-level labels if they share a key. Keys and values must be Kubernetes-conformant.
map<string, string> namespace_labels = 9 [(.google.api.field_behavior) = OPTIONAL]; -
getLabelsCount
int getLabelsCount()Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
containsLabels
Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getLabelsOrDefault
Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; -
getLabelsOrThrow
Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
-