Class InitializeHubRequest.Builder (1.36.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InitializeHubRequest build()
Returns
TypeDescription
InitializeHubRequest

buildPartial()

public InitializeHubRequest buildPartial()
Returns
TypeDescription
InitializeHubRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public InitializeHubRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
InitializeHubRequest.Builder
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
TypeDescription
InitializeHubRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InitializeHubRequest getDefaultInstanceForType()
Returns
TypeDescription
InitializeHubRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
ByteString

The bytes for project.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InitializeHubRequest other)

public InitializeHubRequest.Builder mergeFrom(InitializeHubRequest other)
Parameter
NameDescription
otherInitializeHubRequest
Returns
TypeDescription
InitializeHubRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public InitializeHubRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
InitializeHubRequest.Builder
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
NameDescription
valueString

The project to set.

Returns
TypeDescription
InitializeHubRequest.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for project to set.

Returns
TypeDescription
InitializeHubRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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