public static final class NamespacedName.Builder extends GeneratedMessage.Builder<NamespacedName.Builder> implements NamespacedNameOrBuilderA reference to a namespaced resource in Kubernetes.
Protobuf type google.cloud.gkebackup.v1.NamespacedName
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NamespacedName.BuilderImplements
NamespacedNameOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public NamespacedName build()| Returns | |
|---|---|
| Type | Description |
NamespacedName |
|
buildPartial()
public NamespacedName buildPartial()| Returns | |
|---|---|
| Type | Description |
NamespacedName |
|
clear()
public NamespacedName.Builder clear()| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
|
clearName()
public NamespacedName.Builder clearName()Optional. The name of the Kubernetes resource.
string name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
This builder for chaining. |
clearNamespace()
public NamespacedName.Builder clearNamespace()Optional. The Namespace of the Kubernetes resource.
string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public NamespacedName getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NamespacedName |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Optional. The name of the Kubernetes resource.
string name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Optional. The name of the Kubernetes resource.
string name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNamespace()
public String getNamespace()Optional. The Namespace of the Kubernetes resource.
string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The namespace. |
getNamespaceBytes()
public ByteString getNamespaceBytes()Optional. The Namespace of the Kubernetes resource.
string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for namespace. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(NamespacedName other)
public NamespacedName.Builder mergeFrom(NamespacedName other)| Parameter | |
|---|---|
| Name | Description |
other |
NamespacedName |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NamespacedName.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NamespacedName.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
|
setName(String value)
public NamespacedName.Builder setName(String value)Optional. The name of the Kubernetes resource.
string name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public NamespacedName.Builder setNameBytes(ByteString value)Optional. The name of the Kubernetes resource.
string name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
This builder for chaining. |
setNamespace(String value)
public NamespacedName.Builder setNamespace(String value)Optional. The Namespace of the Kubernetes resource.
string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe namespace to set. |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
This builder for chaining. |
setNamespaceBytes(ByteString value)
public NamespacedName.Builder setNamespaceBytes(ByteString value)Optional. The Namespace of the Kubernetes resource.
string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for namespace to set. |
| Returns | |
|---|---|
| Type | Description |
NamespacedName.Builder |
This builder for chaining. |