Class CreateScopeRequest.Builder (1.85.0)

public static final class CreateScopeRequest.Builder extends GeneratedMessage.Builder<CreateScopeRequest.Builder> implements CreateScopeRequestOrBuilder

Request to create a Scope.

Protobuf type google.cloud.gkehub.v1.CreateScopeRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateScopeRequest build()
Returns
Type Description
CreateScopeRequest

buildPartial()

public CreateScopeRequest buildPartial()
Returns
Type Description
CreateScopeRequest

clear()

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

clearParent()

public CreateScopeRequest.Builder clearParent()

Required. The parent (project and location) where the Scope will be created. Specified in the format projects/*/locations/*.

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

Returns
Type Description
CreateScopeRequest.Builder

This builder for chaining.

clearScope()

public CreateScopeRequest.Builder clearScope()

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateScopeRequest.Builder

clearScopeId()

public CreateScopeRequest.Builder clearScopeId()

Required. Client chosen ID for the Scope. scope_id must be a ????

string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateScopeRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateScopeRequest getDefaultInstanceForType()
Returns
Type Description
CreateScopeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent (project and location) where the Scope will be created. Specified in the format projects/*/locations/*.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent (project and location) where the Scope will be created. Specified in the format projects/*/locations/*.

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

Returns
Type Description
ByteString

The bytes for parent.

getScope()

public Scope getScope()

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Scope

The scope.

getScopeBuilder()

public Scope.Builder getScopeBuilder()

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Scope.Builder

getScopeId()

public String getScopeId()

Required. Client chosen ID for the Scope. scope_id must be a ????

string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The scopeId.

getScopeIdBytes()

public ByteString getScopeIdBytes()

Required. Client chosen ID for the Scope. scope_id must be a ????

string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for scopeId.

getScopeOrBuilder()

public ScopeOrBuilder getScopeOrBuilder()

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ScopeOrBuilder

hasScope()

public boolean hasScope()

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the scope field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateScopeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeScope(Scope value)

public CreateScopeRequest.Builder mergeScope(Scope value)

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Scope
Returns
Type Description
CreateScopeRequest.Builder

setParent(String value)

public CreateScopeRequest.Builder setParent(String value)

Required. The parent (project and location) where the Scope will be created. Specified in the format projects/*/locations/*.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateScopeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateScopeRequest.Builder setParentBytes(ByteString value)

Required. The parent (project and location) where the Scope will be created. Specified in the format projects/*/locations/*.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateScopeRequest.Builder

This builder for chaining.

setScope(Scope value)

public CreateScopeRequest.Builder setScope(Scope value)

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Scope
Returns
Type Description
CreateScopeRequest.Builder

setScope(Scope.Builder builderForValue)

public CreateScopeRequest.Builder setScope(Scope.Builder builderForValue)

Required. The Scope to create.

.google.cloud.gkehub.v1.Scope scope = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Scope.Builder
Returns
Type Description
CreateScopeRequest.Builder

setScopeId(String value)

public CreateScopeRequest.Builder setScopeId(String value)

Required. Client chosen ID for the Scope. scope_id must be a ????

string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The scopeId to set.

Returns
Type Description
CreateScopeRequest.Builder

This builder for chaining.

setScopeIdBytes(ByteString value)

public CreateScopeRequest.Builder setScopeIdBytes(ByteString value)

Required. Client chosen ID for the Scope. scope_id must be a ????

string scope_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for scopeId to set.

Returns
Type Description
CreateScopeRequest.Builder

This builder for chaining.