public static final class Namespace.Builder extends GeneratedMessage.Builder<Namespace.Builder> implements NamespaceOrBuilderNamespace represents a namespace across the Fleet
Protobuf type google.cloud.gkehub.v1.Namespace
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Namespace.BuilderImplements
NamespaceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Namespace build()| Returns | |
|---|---|
| Type | Description |
Namespace |
|
buildPartial()
public Namespace buildPartial()| Returns | |
|---|---|
| Type | Description |
Namespace |
|
clear()
public Namespace.Builder clear()| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
clearCreateTime()
public Namespace.Builder clearCreateTime()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
clearDeleteTime()
public Namespace.Builder clearDeleteTime()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
clearLabels()
public Namespace.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
clearName()
public Namespace.Builder clearName() The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
clearNamespaceLabels()
public Namespace.Builder clearNamespaceLabels()| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
clearScope()
public Namespace.Builder clearScope()Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
clearState()
public Namespace.Builder clearState()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
clearUid()
public Namespace.Builder clearUid()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 | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
clearUpdateTime()
public Namespace.Builder clearUpdateTime()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
containsNamespaceLabels(String key)
public boolean containsNamespaceLabels(String key) 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];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCreateTime()
public Timestamp getCreateTime()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Namespace getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Namespace |
|
getDeleteTime()
public Timestamp getDeleteTime()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The deleteTime. |
getDeleteTimeBuilder()
public Timestamp.Builder getDeleteTimeBuilder()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getDeleteTimeOrBuilder()
public TimestampOrBuilder getDeleteTimeOrBuilder()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMutableNamespaceLabels() (deprecated)
public Map<String,String> getMutableNamespaceLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName() The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNamespaceLabels() (deprecated)
public Map<String,String> getNamespaceLabels()Use #getNamespaceLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getNamespaceLabelsCount()
public 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];
| Returns | |
|---|---|
| Type | Description |
int |
|
getNamespaceLabelsMap()
public Map<String,String> 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];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getNamespaceLabelsOrDefault(String key, String defaultValue)
public String getNamespaceLabelsOrDefault(String key, String defaultValue) 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];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getNamespaceLabelsOrThrow(String key)
public String getNamespaceLabelsOrThrow(String key) 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];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getScope()
public String getScope()Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The scope. |
getScopeBytes()
public ByteString getScopeBytes()Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for scope. |
getState()
public NamespaceLifecycleState getState()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
NamespaceLifecycleState |
The state. |
getStateBuilder()
public NamespaceLifecycleState.Builder getStateBuilder()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
NamespaceLifecycleState.Builder |
|
getStateOrBuilder()
public NamespaceLifecycleStateOrBuilder getStateOrBuilder()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
NamespaceLifecycleStateOrBuilder |
|
getUid()
public 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 | |
|---|---|
| Type | Description |
String |
The uid. |
getUidBytes()
public 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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for uid. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasDeleteTime()
public boolean hasDeleteTime()Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the deleteTime field is set. |
hasState()
public boolean hasState()Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the state field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Namespace.Builder mergeCreateTime(Timestamp value)Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
mergeDeleteTime(Timestamp value)
public Namespace.Builder mergeDeleteTime(Timestamp value)Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
mergeFrom(Namespace other)
public Namespace.Builder mergeFrom(Namespace other)| Parameter | |
|---|---|
| Name | Description |
other |
Namespace |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Namespace.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Namespace.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
mergeState(NamespaceLifecycleState value)
public Namespace.Builder mergeState(NamespaceLifecycleState value)Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
NamespaceLifecycleState |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
mergeUpdateTime(Timestamp value)
public Namespace.Builder mergeUpdateTime(Timestamp value)Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
putAllLabels(Map<String,String> values)
public Namespace.Builder putAllLabels(Map<String,String> values)Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
putAllNamespaceLabels(Map<String,String> values)
public Namespace.Builder putAllNamespaceLabels(Map<String,String> values) 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];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
putLabels(String key, String value)
public Namespace.Builder putLabels(String key, String value)Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
putNamespaceLabels(String key, String value)
public Namespace.Builder putNamespaceLabels(String key, String value) 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];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
removeLabels(String key)
public Namespace.Builder removeLabels(String key)Optional. Labels for this Namespace.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
removeNamespaceLabels(String key)
public Namespace.Builder removeNamespaceLabels(String key) 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];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setCreateTime(Timestamp value)
public Namespace.Builder setCreateTime(Timestamp value)Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Namespace.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. When the namespace was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setDeleteTime(Timestamp value)
public Namespace.Builder setDeleteTime(Timestamp value)Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setDeleteTime(Timestamp.Builder builderForValue)
public Namespace.Builder setDeleteTime(Timestamp.Builder builderForValue)Output only. When the namespace was deleted.
.google.protobuf.Timestamp delete_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setName(String value)
public Namespace.Builder setName(String value) The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Namespace.Builder setNameBytes(ByteString value) The resource name for the namespace
projects/{project}/locations/{location}/namespaces/{namespace}
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
setScope(String value)
public Namespace.Builder setScope(String value)Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe scope to set. |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
setScopeBytes(ByteString value)
public Namespace.Builder setScopeBytes(ByteString value)Required. Scope associated with the namespace
string scope = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for scope to set. |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
setState(NamespaceLifecycleState value)
public Namespace.Builder setState(NamespaceLifecycleState value)Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
NamespaceLifecycleState |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setState(NamespaceLifecycleState.Builder builderForValue)
public Namespace.Builder setState(NamespaceLifecycleState.Builder builderForValue)Output only. State of the namespace resource.
.google.cloud.gkehub.v1.NamespaceLifecycleState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NamespaceLifecycleState.Builder |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setUid(String value)
public Namespace.Builder setUid(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe uid to set. |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
setUidBytes(ByteString value)
public Namespace.Builder setUidBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for uid to set. |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public Namespace.Builder setUpdateTime(Timestamp value)Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Namespace.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. When the namespace was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Namespace.Builder |
|