Class GetMembershipRequest.Builder (1.27.0)

public static final class GetMembershipRequest.Builder extends GeneratedMessageV3.Builder<GetMembershipRequest.Builder> implements GetMembershipRequestOrBuilder

Request message for GkeHub.GetMembership method.

Protobuf type google.cloud.gkehub.v1.GetMembershipRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetMembershipRequest build()
Returns
TypeDescription
GetMembershipRequest

buildPartial()

public GetMembershipRequest buildPartial()
Returns
TypeDescription
GetMembershipRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetMembershipRequest.Builder clearName()

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetMembershipRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetMembershipRequest getDefaultInstanceForType()
Returns
TypeDescription
GetMembershipRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetMembershipRequest other)

public GetMembershipRequest.Builder mergeFrom(GetMembershipRequest other)
Parameter
NameDescription
otherGetMembershipRequest
Returns
TypeDescription
GetMembershipRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetMembershipRequest.Builder setName(String value)

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetMembershipRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetMembershipRequest.Builder setNameBytes(ByteString value)

Required. The Membership resource name in the format projects/*/locations/*/memberships/*.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetMembershipRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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