Class Scope.Builder (0.14.1)

public static final class Scope.Builder extends GeneratedMessageV3.Builder<Scope.Builder> implements ScopeOrBuilder

Scope represents a Scope in a Fleet.

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

Implements

ScopeOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Scope build()
Returns
TypeDescription
Scope

buildPartial()

public Scope buildPartial()
Returns
TypeDescription
Scope

clear()

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

clearCreateTime()

public Scope.Builder clearCreateTime()

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Scope.Builder

clearDeleteTime()

public Scope.Builder clearDeleteTime()

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Returns
TypeDescription
Scope.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Scope.Builder clearName()

The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}

string name = 1;

Returns
TypeDescription
Scope.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public Scope.Builder clearState()

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Returns
TypeDescription
Scope.Builder

clearUid()

public Scope.Builder clearUid()

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

string uid = 2;

Returns
TypeDescription
Scope.Builder

This builder for chaining.

clearUpdateTime()

public Scope.Builder clearUpdateTime()

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Scope.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Scope getDefaultInstanceForType()
Returns
TypeDescription
Scope

getDeleteTime()

public Timestamp getDeleteTime()

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Returns
TypeDescription
Timestamp

The deleteTime.

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Returns
TypeDescription
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Returns
TypeDescription
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getState()

public ScopeLifecycleState getState()

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Returns
TypeDescription
ScopeLifecycleState

The state.

getStateBuilder()

public ScopeLifecycleState.Builder getStateBuilder()

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Returns
TypeDescription
ScopeLifecycleState.Builder

getStateOrBuilder()

public ScopeLifecycleStateOrBuilder getStateOrBuilder()

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Returns
TypeDescription
ScopeLifecycleStateOrBuilder

getUid()

public String getUid()

Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope 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 scope resources. If a scope 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 scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeleteTime()

public boolean hasDeleteTime()

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Returns
TypeDescription
boolean

Whether the deleteTime field is set.

hasState()

public boolean hasState()

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Returns
TypeDescription
boolean

Whether the state field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

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 Scope.Builder mergeCreateTime(Timestamp value)

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Scope.Builder

mergeDeleteTime(Timestamp value)

public Scope.Builder mergeDeleteTime(Timestamp value)

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Scope.Builder

mergeFrom(Scope other)

public Scope.Builder mergeFrom(Scope other)
Parameter
NameDescription
otherScope
Returns
TypeDescription
Scope.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeState(ScopeLifecycleState value)

public Scope.Builder mergeState(ScopeLifecycleState value)

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Parameter
NameDescription
valueScopeLifecycleState
Returns
TypeDescription
Scope.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public Scope.Builder mergeUpdateTime(Timestamp value)

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Scope.Builder

setCreateTime(Timestamp value)

public Scope.Builder setCreateTime(Timestamp value)

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Scope.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Scope.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. When the scope was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Scope.Builder

setDeleteTime(Timestamp value)

public Scope.Builder setDeleteTime(Timestamp value)

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Scope.Builder

setDeleteTime(Timestamp.Builder builderForValue)

public Scope.Builder setDeleteTime(Timestamp.Builder builderForValue)

Output only. When the scope was deleted.

.google.protobuf.Timestamp delete_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Scope.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Scope.Builder setName(String value)

The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Scope.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Scope.Builder setNameBytes(ByteString value)

The resource name for the scope projects/{project}/locations/{location}/scopes/{scope}

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Scope.Builder

This builder for chaining.

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

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

setState(ScopeLifecycleState value)

public Scope.Builder setState(ScopeLifecycleState value)

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Parameter
NameDescription
valueScopeLifecycleState
Returns
TypeDescription
Scope.Builder

setState(ScopeLifecycleState.Builder builderForValue)

public Scope.Builder setState(ScopeLifecycleState.Builder builderForValue)

Output only. State of the scope resource.

.google.events.cloud.gkehub.v1.ScopeLifecycleState state = 6;

Parameter
NameDescription
builderForValueScopeLifecycleState.Builder
Returns
TypeDescription
Scope.Builder

setUid(String value)

public Scope.Builder setUid(String value)

Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope 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
Scope.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Scope.Builder setUidBytes(ByteString value)

Output only. Google-generated UUID for this resource. This is unique across all scope resources. If a scope 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
Scope.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public Scope.Builder setUpdateTime(Timestamp value)

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Scope.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Scope.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the scope was last updated.

.google.protobuf.Timestamp update_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Scope.Builder