Class InitializeHubResponse.Builder (0.5.4)

public static final class InitializeHubResponse.Builder extends GeneratedMessageV3.Builder<InitializeHubResponse.Builder> implements InitializeHubResponseOrBuilder

Response message for the InitializeHub method.

Protobuf type google.cloud.gkehub.v1alpha2.InitializeHubResponse

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InitializeHubResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

build()

public InitializeHubResponse build()
Returns
TypeDescription
InitializeHubResponse

buildPartial()

public InitializeHubResponse buildPartial()
Returns
TypeDescription
InitializeHubResponse

clear()

public InitializeHubResponse.Builder clear()
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public InitializeHubResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InitializeHubResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

clearServiceIdentity()

public InitializeHubResponse.Builder clearServiceIdentity()

Name of the Hub default service identity, in the format: service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com The service account has roles/gkehub.serviceAgent in the Hub project.

string service_identity = 1;

Returns
TypeDescription
InitializeHubResponse.Builder

This builder for chaining.

clearWorkloadIdentityPool()

public InitializeHubResponse.Builder clearWorkloadIdentityPool()

The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: <project-id>.hub.id.goog

string workload_identity_pool = 2;

Returns
TypeDescription
InitializeHubResponse.Builder

This builder for chaining.

clone()

public InitializeHubResponse.Builder clone()
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

getDefaultInstanceForType()

public InitializeHubResponse getDefaultInstanceForType()
Returns
TypeDescription
InitializeHubResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceIdentity()

public String getServiceIdentity()

Name of the Hub default service identity, in the format: service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com The service account has roles/gkehub.serviceAgent in the Hub project.

string service_identity = 1;

Returns
TypeDescription
String

The serviceIdentity.

getServiceIdentityBytes()

public ByteString getServiceIdentityBytes()

Name of the Hub default service identity, in the format: service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com The service account has roles/gkehub.serviceAgent in the Hub project.

string service_identity = 1;

Returns
TypeDescription
ByteString

The bytes for serviceIdentity.

getWorkloadIdentityPool()

public String getWorkloadIdentityPool()

The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: <project-id>.hub.id.goog

string workload_identity_pool = 2;

Returns
TypeDescription
String

The workloadIdentityPool.

getWorkloadIdentityPoolBytes()

public ByteString getWorkloadIdentityPoolBytes()

The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: <project-id>.hub.id.goog

string workload_identity_pool = 2;

Returns
TypeDescription
ByteString

The bytes for workloadIdentityPool.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InitializeHubResponse other)

public InitializeHubResponse.Builder mergeFrom(InitializeHubResponse other)
Parameter
NameDescription
otherInitializeHubResponse
Returns
TypeDescription
InitializeHubResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InitializeHubResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public InitializeHubResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InitializeHubResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public InitializeHubResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InitializeHubResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

setServiceIdentity(String value)

public InitializeHubResponse.Builder setServiceIdentity(String value)

Name of the Hub default service identity, in the format: service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com The service account has roles/gkehub.serviceAgent in the Hub project.

string service_identity = 1;

Parameter
NameDescription
valueString

The serviceIdentity to set.

Returns
TypeDescription
InitializeHubResponse.Builder

This builder for chaining.

setServiceIdentityBytes(ByteString value)

public InitializeHubResponse.Builder setServiceIdentityBytes(ByteString value)

Name of the Hub default service identity, in the format: service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com The service account has roles/gkehub.serviceAgent in the Hub project.

string service_identity = 1;

Parameter
NameDescription
valueByteString

The bytes for serviceIdentity to set.

Returns
TypeDescription
InitializeHubResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InitializeHubResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
InitializeHubResponse.Builder
Overrides

setWorkloadIdentityPool(String value)

public InitializeHubResponse.Builder setWorkloadIdentityPool(String value)

The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: <project-id>.hub.id.goog

string workload_identity_pool = 2;

Parameter
NameDescription
valueString

The workloadIdentityPool to set.

Returns
TypeDescription
InitializeHubResponse.Builder

This builder for chaining.

setWorkloadIdentityPoolBytes(ByteString value)

public InitializeHubResponse.Builder setWorkloadIdentityPoolBytes(ByteString value)

The Workload Identity Pool used for Workload Identity-enabled clusters registered with this Hub. Format: <project-id>.hub.id.goog

string workload_identity_pool = 2;

Parameter
NameDescription
valueByteString

The bytes for workloadIdentityPool to set.

Returns
TypeDescription
InitializeHubResponse.Builder

This builder for chaining.