public static final class OnPremCluster.Builder extends GeneratedMessageV3.Builder<OnPremCluster.Builder> implements OnPremClusterOrBuilder
OnPremCluster contains information specific to GKE On-Prem clusters.
Protobuf type google.cloud.gkehub.v1alpha2.OnPremCluster
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OnPremCluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public OnPremCluster build()
buildPartial()
public OnPremCluster buildPartial()
clear()
public OnPremCluster.Builder clear()
Overrides
clearAdminCluster()
public OnPremCluster.Builder clearAdminCluster()
Immutable. Whether the cluster is an admin cluster.
bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
clearClusterMissing()
public OnPremCluster.Builder clearClusterMissing()
Output only. If cluster_missing is set then it denotes that
API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
longer exists.
bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
public OnPremCluster.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public OnPremCluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearResourceLink()
public OnPremCluster.Builder clearResourceLink()
Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
clone()
public OnPremCluster.Builder clone()
Overrides
getAdminCluster()
public boolean getAdminCluster()
Immutable. Whether the cluster is an admin cluster.
bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
---|
Type | Description |
boolean | The adminCluster.
|
getClusterMissing()
public boolean getClusterMissing()
Output only. If cluster_missing is set then it denotes that
API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
longer exists.
bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
---|
Type | Description |
boolean | The clusterMissing.
|
getDefaultInstanceForType()
public OnPremCluster getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getResourceLink()
public String getResourceLink()
Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
---|
Type | Description |
String | The resourceLink.
|
getResourceLinkBytes()
public ByteString getResourceLinkBytes()
Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
Returns |
---|
Type | Description |
ByteString | The bytes for resourceLink.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(OnPremCluster other)
public OnPremCluster.Builder mergeFrom(OnPremCluster other)
public OnPremCluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public OnPremCluster.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OnPremCluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setAdminCluster(boolean value)
public OnPremCluster.Builder setAdminCluster(boolean value)
Immutable. Whether the cluster is an admin cluster.
bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
Parameter |
---|
Name | Description |
value | boolean
The adminCluster to set.
|
setClusterMissing(boolean value)
public OnPremCluster.Builder setClusterMissing(boolean value)
Output only. If cluster_missing is set then it denotes that
API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
longer exists.
bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
---|
Name | Description |
value | boolean
The clusterMissing to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public OnPremCluster.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OnPremCluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setResourceLink(String value)
public OnPremCluster.Builder setResourceLink(String value)
Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
Parameter |
---|
Name | Description |
value | String
The resourceLink to set.
|
setResourceLinkBytes(ByteString value)
public OnPremCluster.Builder setResourceLinkBytes(ByteString value)
Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
//gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/bareMetalClusters/my-cluster
string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for resourceLink to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final OnPremCluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides