public static final class GetScopeRequest.Builder extends GeneratedMessage.Builder<GetScopeRequest.Builder> implements GetScopeRequestOrBuilderMessage for getting a Scope.
Protobuf type google.cloud.observability.v1.GetScopeRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GetScopeRequest.BuilderImplements
GetScopeRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GetScopeRequest build()| Returns | |
|---|---|
| Type | Description |
GetScopeRequest |
|
buildPartial()
public GetScopeRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
GetScopeRequest |
|
clear()
public GetScopeRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
|
clearName()
public GetScopeRequest.Builder clearName()Required. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GetScopeRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GetScopeRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GetScopeRequest other)
public GetScopeRequest.Builder mergeFrom(GetScopeRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
GetScopeRequest |
| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GetScopeRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GetScopeRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
|
setName(String value)
public GetScopeRequest.Builder setName(String value)Required. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GetScopeRequest.Builder setNameBytes(ByteString value)Required. Name of the resource. The format is:
projects/{project}/locations/{location}/scopes/{scope}
The {location} field must be set to global. The {scope} field must
be set to _Default.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GetScopeRequest.Builder |
This builder for chaining. |