public static final class InitializeHubRequest.Builder extends GeneratedMessageV3.Builder<InitializeHubRequest.Builder> implements InitializeHubRequestOrBuilder
Request message for the InitializeHub method.
Protobuf type google.cloud.gkehub.v1alpha2.InitializeHubRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public InitializeHubRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public InitializeHubRequest build()
Returns
buildPartial()
public InitializeHubRequest buildPartial()
Returns
clear()
public InitializeHubRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public InitializeHubRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public InitializeHubRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProject()
public InitializeHubRequest.Builder clearProject()
Required. The Hub to initialize, in the format
projects/*/locations/*/memberships/*
.
string project = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public InitializeHubRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public InitializeHubRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getProject()
public String getProject()
Required. The Hub to initialize, in the format
projects/*/locations/*/memberships/*
.
string project = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The project.
|
getProjectBytes()
public ByteString getProjectBytes()
Required. The Hub to initialize, in the format
projects/*/locations/*/memberships/*
.
string project = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(InitializeHubRequest other)
public InitializeHubRequest.Builder mergeFrom(InitializeHubRequest other)
Parameter
Returns
public InitializeHubRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public InitializeHubRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final InitializeHubRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public InitializeHubRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setProject(String value)
public InitializeHubRequest.Builder setProject(String value)
Required. The Hub to initialize, in the format
projects/*/locations/*/memberships/*
.
string project = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The project to set.
|
Returns
setProjectBytes(ByteString value)
public InitializeHubRequest.Builder setProjectBytes(ByteString value)
Required. The Hub to initialize, in the format
projects/*/locations/*/memberships/*
.
string project = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for project to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public InitializeHubRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final InitializeHubRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides