Class InitializeHubResponse.Builder (1.36.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version latestkeyboard_arrow_down
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
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 InitializeHubResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public InitializeHubResponse build ()
buildPartial()
public InitializeHubResponse buildPartial ()
clear()
public InitializeHubResponse . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public InitializeHubResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitializeHubResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
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;
clone()
public InitializeHubResponse . Builder clone ()
Overrides
getDefaultInstanceForType()
public InitializeHubResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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 Type Description 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 Type Description 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 Type Description 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 Type Description ByteString
The bytes for workloadIdentityPool.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(InitializeHubResponse other)
public InitializeHubResponse . Builder mergeFrom ( InitializeHubResponse other )
public InitializeHubResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public InitializeHubResponse . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitializeHubResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InitializeHubResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitializeHubResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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 Name Description value
String
The serviceIdentity to set.
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 Name Description value
ByteString
The bytes for serviceIdentity to set.
setUnknownFields(UnknownFieldSet unknownFields)
public final InitializeHubResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
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 Name Description value
String
The workloadIdentityPool to set.
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 Name Description value
ByteString
The bytes for workloadIdentityPool to set.
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-08-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-02 UTC."],[],[]]