public static final class AnthosCluster.Builder extends GeneratedMessageV3.Builder<AnthosCluster.Builder> implements AnthosClusterOrBuilder
Information specifying an Anthos Cluster.
Protobuf type google.cloud.deploy.v1.AnthosCluster
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AnthosCluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AnthosCluster build()
Returns
buildPartial()
public AnthosCluster buildPartial()
Returns
clear()
public AnthosCluster.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public AnthosCluster.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMembership()
public AnthosCluster.Builder clearMembership()
Membership of the GKE Hub-registered cluster to which to apply the Skaffold
configuration. Format is
projects/{project}/locations/{location}/memberships/{membership_name}
.
string membership = 1 [(.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public AnthosCluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AnthosCluster.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public AnthosCluster getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMembership()
public String getMembership()
Membership of the GKE Hub-registered cluster to which to apply the Skaffold
configuration. Format is
projects/{project}/locations/{location}/memberships/{membership_name}
.
string membership = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The membership.
|
getMembershipBytes()
public ByteString getMembershipBytes()
Membership of the GKE Hub-registered cluster to which to apply the Skaffold
configuration. Format is
projects/{project}/locations/{location}/memberships/{membership_name}
.
string membership = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for membership.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AnthosCluster other)
public AnthosCluster.Builder mergeFrom(AnthosCluster other)
Parameter
Returns
public AnthosCluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AnthosCluster.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AnthosCluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public AnthosCluster.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMembership(String value)
public AnthosCluster.Builder setMembership(String value)
Membership of the GKE Hub-registered cluster to which to apply the Skaffold
configuration. Format is
projects/{project}/locations/{location}/memberships/{membership_name}
.
string membership = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The membership to set.
|
Returns
setMembershipBytes(ByteString value)
public AnthosCluster.Builder setMembershipBytes(ByteString value)
Membership of the GKE Hub-registered cluster to which to apply the Skaffold
configuration. Format is
projects/{project}/locations/{location}/memberships/{membership_name}
.
string membership = 1 [(.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for membership to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AnthosCluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AnthosCluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides