Send feedback
Class Fleet.Builder (2.58.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.58.0 keyboard_arrow_down
public static final class Fleet . Builder extends GeneratedMessageV3 . Builder<Fleet . Builder > implements FleetOrBuilder
Fleet is the fleet configuration for the cluster.
Protobuf type google.container.v1.Fleet
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 Fleet . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
Returns
Type
Description
Fleet
buildPartial()
public Fleet buildPartial ()
Returns
Type
Description
Fleet
clear()
public Fleet . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Fleet . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearMembership()
public Fleet . Builder clearMembership ()
Output only. The full resource name of the registered fleet membership of
the cluster, in the format
//gkehub.googleapis.com/projects/*/locations/*/memberships/*
.
string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Fleet.Builder
This builder for chaining.
clearOneof(Descriptors.OneofDescriptor oneof)
public Fleet . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPreRegistered()
public Fleet . Builder clearPreRegistered ()
Output only. Whether the cluster has been registered through the fleet
API.
bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
Fleet.Builder
This builder for chaining.
clearProject()
public Fleet . Builder clearProject ()
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
string project = 1;
Returns
Type
Description
Fleet.Builder
This builder for chaining.
clone()
public Fleet . Builder clone ()
Overrides
getDefaultInstanceForType()
public Fleet getDefaultInstanceForType ()
Returns
Type
Description
Fleet
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getMembership()
public String getMembership ()
Output only. The full resource name of the registered fleet membership of
the cluster, in the format
//gkehub.googleapis.com/projects/*/locations/*/memberships/*
.
string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
String
The membership.
getMembershipBytes()
public ByteString getMembershipBytes ()
Output only. The full resource name of the registered fleet membership of
the cluster, in the format
//gkehub.googleapis.com/projects/*/locations/*/memberships/*
.
string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
ByteString
The bytes for membership.
getPreRegistered()
public boolean getPreRegistered ()
Output only. Whether the cluster has been registered through the fleet
API.
bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type
Description
boolean
The preRegistered.
getProject()
public String getProject ()
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
string project = 1;
Returns
Type
Description
String
The project.
getProjectBytes()
public ByteString getProjectBytes ()
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
string project = 1;
Returns
Type
Description
ByteString
The bytes for project.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(Fleet other)
public Fleet . Builder mergeFrom ( Fleet other )
Parameter
Name
Description
other
Fleet
public Fleet . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Fleet . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Fleet . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Fleet . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setMembership(String value)
public Fleet . Builder setMembership ( String value )
Output only. The full resource name of the registered fleet membership of
the cluster, in the format
//gkehub.googleapis.com/projects/*/locations/*/memberships/*
.
string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
String
The membership to set.
Returns
Type
Description
Fleet.Builder
This builder for chaining.
setMembershipBytes(ByteString value)
public Fleet . Builder setMembershipBytes ( ByteString value )
Output only. The full resource name of the registered fleet membership of
the cluster, in the format
//gkehub.googleapis.com/projects/*/locations/*/memberships/*
.
string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
ByteString
The bytes for membership to set.
Returns
Type
Description
Fleet.Builder
This builder for chaining.
setPreRegistered(boolean value)
public Fleet . Builder setPreRegistered ( boolean value )
Output only. Whether the cluster has been registered through the fleet
API.
bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name
Description
value
boolean
The preRegistered to set.
Returns
Type
Description
Fleet.Builder
This builder for chaining.
setProject(String value)
public Fleet . Builder setProject ( String value )
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
string project = 1;
Parameter
Name
Description
value
String
The project to set.
Returns
Type
Description
Fleet.Builder
This builder for chaining.
setProjectBytes(ByteString value)
public Fleet . Builder setProjectBytes ( ByteString value )
The Fleet host project(project ID or project number) where this cluster
will be registered to. This field cannot be changed after the cluster has
been registered.
string project = 1;
Parameter
Name
Description
value
ByteString
The bytes for project to set.
Returns
Type
Description
Fleet.Builder
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Fleet . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Fleet . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]