Class MembershipBinding.Builder (0.15.0)

public static final class MembershipBinding.Builder extends GeneratedMessageV3.Builder<MembershipBinding.Builder> implements MembershipBindingOrBuilder

MembershipBinding is a subresource of a Membership, representing what Fleet Scopes (or other, future Fleet resources) a Membership is bound to.

Protobuf type google.events.cloud.gkehub.v1.MembershipBinding

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MembershipBinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MembershipBinding.Builder
Overrides

build()

public MembershipBinding build()
Returns
Type Description
MembershipBinding

buildPartial()

public MembershipBinding buildPartial()
Returns
Type Description
MembershipBinding

clear()

public MembershipBinding.Builder clear()
Returns
Type Description
MembershipBinding.Builder
Overrides

clearCreateTime()

public MembershipBinding.Builder clearCreateTime()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
MembershipBinding.Builder

clearDeleteTime()

public MembershipBinding.Builder clearDeleteTime()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
Type Description
MembershipBinding.Builder

clearField(Descriptors.FieldDescriptor field)

public MembershipBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MembershipBinding.Builder
Overrides

clearFleet()

public MembershipBinding.Builder clearFleet()

Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.

bool fleet = 4;

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

clearName()

public MembershipBinding.Builder clearName()

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

string name = 1;

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public MembershipBinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MembershipBinding.Builder
Overrides

clearScope()

public MembershipBinding.Builder clearScope()

A Workspace resource name in the format projects/*/locations/*/scopes/*.

string scope = 3;

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

clearState()

public MembershipBinding.Builder clearState()

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Returns
Type Description
MembershipBinding.Builder

clearTarget()

public MembershipBinding.Builder clearTarget()
Returns
Type Description
MembershipBinding.Builder

clearUid()

public MembershipBinding.Builder clearUid()

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2;

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

clearUpdateTime()

public MembershipBinding.Builder clearUpdateTime()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
MembershipBinding.Builder

clone()

public MembershipBinding.Builder clone()
Returns
Type Description
MembershipBinding.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public MembershipBinding getDefaultInstanceForType()
Returns
Type Description
MembershipBinding

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
Type Description
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFleet()

public boolean getFleet()

Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.

bool fleet = 4;

Returns
Type Description
boolean

The fleet.

getName()

public String getName()

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getScope()

public String getScope()

A Workspace resource name in the format projects/*/locations/*/scopes/*.

string scope = 3;

Returns
Type Description
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

A Workspace resource name in the format projects/*/locations/*/scopes/*.

string scope = 3;

Returns
Type Description
ByteString

The bytes for scope.

getState()

public MembershipBindingLifecycleState getState()

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Returns
Type Description
MembershipBindingLifecycleState

The state.

getStateBuilder()

public MembershipBindingLifecycleState.Builder getStateBuilder()

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Returns
Type Description
MembershipBindingLifecycleState.Builder

getStateOrBuilder()

public MembershipBindingLifecycleStateOrBuilder getStateOrBuilder()

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Returns
Type Description
MembershipBindingLifecycleStateOrBuilder

getTargetCase()

public MembershipBinding.TargetCase getTargetCase()
Returns
Type Description
MembershipBinding.TargetCase

getUid()

public String getUid()

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2;

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2;

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
Type Description
boolean

Whether the deleteTime field is set.

hasFleet()

public boolean hasFleet()

Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.

bool fleet = 4;

Returns
Type Description
boolean

Whether the fleet field is set.

hasScope()

public boolean hasScope()

A Workspace resource name in the format projects/*/locations/*/scopes/*.

string scope = 3;

Returns
Type Description
boolean

Whether the scope field is set.

hasState()

public boolean hasState()

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Returns
Type Description
boolean

Whether the state field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public MembershipBinding.Builder mergeCreateTime(Timestamp value)

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
MembershipBinding.Builder

mergeDeleteTime(Timestamp value)

public MembershipBinding.Builder mergeDeleteTime(Timestamp value)

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MembershipBinding.Builder

mergeFrom(MembershipBinding other)

public MembershipBinding.Builder mergeFrom(MembershipBinding other)
Parameter
Name Description
other MembershipBinding
Returns
Type Description
MembershipBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MembershipBinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MembershipBinding.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MembershipBinding.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MembershipBinding.Builder
Overrides

mergeState(MembershipBindingLifecycleState value)

public MembershipBinding.Builder mergeState(MembershipBindingLifecycleState value)

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Parameter
Name Description
value MembershipBindingLifecycleState
Returns
Type Description
MembershipBinding.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MembershipBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MembershipBinding.Builder
Overrides

mergeUpdateTime(Timestamp value)

public MembershipBinding.Builder mergeUpdateTime(Timestamp value)

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MembershipBinding.Builder

setCreateTime(Timestamp value)

public MembershipBinding.Builder setCreateTime(Timestamp value)

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
MembershipBinding.Builder

setCreateTime(Timestamp.Builder builderForValue)

public MembershipBinding.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MembershipBinding.Builder

setDeleteTime(Timestamp value)

public MembershipBinding.Builder setDeleteTime(Timestamp value)

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
MembershipBinding.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public MembershipBinding.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MembershipBinding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MembershipBinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MembershipBinding.Builder
Overrides

setFleet(boolean value)

public MembershipBinding.Builder setFleet(boolean value)

Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.

bool fleet = 4;

Parameter
Name Description
value boolean

The fleet to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

setName(String value)

public MembershipBinding.Builder setName(String value)

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

setNameBytes(ByteString value)

public MembershipBinding.Builder setNameBytes(ByteString value)

The resource name for the membershipbinding itself projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

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

public MembershipBinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MembershipBinding.Builder
Overrides

setScope(String value)

public MembershipBinding.Builder setScope(String value)

A Workspace resource name in the format projects/*/locations/*/scopes/*.

string scope = 3;

Parameter
Name Description
value String

The scope to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

setScopeBytes(ByteString value)

public MembershipBinding.Builder setScopeBytes(ByteString value)

A Workspace resource name in the format projects/*/locations/*/scopes/*.

string scope = 3;

Parameter
Name Description
value ByteString

The bytes for scope to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

setState(MembershipBindingLifecycleState value)

public MembershipBinding.Builder setState(MembershipBindingLifecycleState value)

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Parameter
Name Description
value MembershipBindingLifecycleState
Returns
Type Description
MembershipBinding.Builder

setState(MembershipBindingLifecycleState.Builder builderForValue)

public MembershipBinding.Builder setState(MembershipBindingLifecycleState.Builder builderForValue)

Output only. State of the membership binding resource.

.google.events.cloud.gkehub.v1.MembershipBindingLifecycleState state = 8;

Parameter
Name Description
builderForValue MembershipBindingLifecycleState.Builder
Returns
Type Description
MembershipBinding.Builder

setUid(String value)

public MembershipBinding.Builder setUid(String value)

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2;

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

setUidBytes(ByteString value)

public MembershipBinding.Builder setUidBytes(ByteString value)

Output only. Google-generated UUID for this resource. This is unique across all membershipbinding resources. If a membershipbinding resource is deleted and another resource with the same name is created, it gets a different uid.

string uid = 2;

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
MembershipBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MembershipBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MembershipBinding.Builder
Overrides

setUpdateTime(Timestamp value)

public MembershipBinding.Builder setUpdateTime(Timestamp value)

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
MembershipBinding.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public MembershipBinding.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MembershipBinding.Builder