Class MembershipBinding.Builder (0.14.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipBinding build()
Returns
TypeDescription
MembershipBinding

buildPartial()

public MembershipBinding buildPartial()
Returns
TypeDescription
MembershipBinding

clear()

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

clearCreateTime()

public MembershipBinding.Builder clearCreateTime()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
MembershipBinding.Builder

clearDeleteTime()

public MembershipBinding.Builder clearDeleteTime()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
TypeDescription
MembershipBinding.Builder

clearField(Descriptors.FieldDescriptor field)

public MembershipBinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MembershipBinding.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScope()

public MembershipBinding.Builder clearScope()

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

string scope = 3;

Returns
TypeDescription
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
TypeDescription
MembershipBinding.Builder

clearTarget()

public MembershipBinding.Builder clearTarget()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MembershipBinding.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public MembershipBinding getDefaultInstanceForType()
Returns
TypeDescription
MembershipBinding

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the membership binding was deleted.

.google.protobuf.Timestamp delete_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

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

The bytes for name.

getScope()

public String getScope()

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

string scope = 3;

Returns
TypeDescription
String

The scope.

getScopeBytes()

public ByteString getScopeBytes()

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

string scope = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MembershipBindingLifecycleState.Builder

getStateOrBuilder()

public MembershipBindingLifecycleStateOrBuilder getStateOrBuilder()

Output only. State of the membership binding resource.

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

Returns
TypeDescription
MembershipBindingLifecycleStateOrBuilder

getTargetCase()

public MembershipBinding.TargetCase getTargetCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the membership binding was last updated.

.google.protobuf.Timestamp update_time = 6;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the membership binding was created.

.google.protobuf.Timestamp create_time = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
MembershipBinding.Builder

mergeFrom(MembershipBinding other)

public MembershipBinding.Builder mergeFrom(MembershipBinding other)
Parameter
NameDescription
otherMembershipBinding
Returns
TypeDescription
MembershipBinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MembershipBinding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMembershipBindingLifecycleState
Returns
TypeDescription
MembershipBinding.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MembershipBinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MembershipBinding.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The fleet to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The scope to set.

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

The bytes for scope to set.

Returns
TypeDescription
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
NameDescription
valueMembershipBindingLifecycleState
Returns
TypeDescription
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
NameDescription
builderForValueMembershipBindingLifecycleState.Builder
Returns
TypeDescription
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
NameDescription
valueString

The uid to set.

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

The bytes for uid to set.

Returns
TypeDescription
MembershipBinding.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final MembershipBinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
MembershipBinding.Builder