public static final class Scope.Builder extends GeneratedMessage.Builder<Scope.Builder> implements ScopeOrBuilderMessage describing Scope object
Protobuf type google.cloud.observability.v1.Scope
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Scope.BuilderImplements
ScopeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Scope build()| Returns | |
|---|---|
| Type | Description |
Scope |
|
buildPartial()
public Scope buildPartial()| Returns | |
|---|---|
| Type | Description |
Scope |
|
clear()
public Scope.Builder clear()| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
clearLogScope()
public Scope.Builder clearLogScope() Required. The full resource name of the logging.googleapis.com/LogScope.
For example:
//logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
string log_scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
clearName()
public Scope.Builder clearName()Identifier. 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) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
clearTraceScope()
public Scope.Builder clearTraceScope() Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
string trace_scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
clearUpdateTime()
public Scope.Builder clearUpdateTime()Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
getDefaultInstanceForType()
public Scope getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Scope |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLogScope()
public String getLogScope() Required. The full resource name of the logging.googleapis.com/LogScope.
For example:
//logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
string log_scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The logScope. |
getLogScopeBytes()
public ByteString getLogScopeBytes() Required. The full resource name of the logging.googleapis.com/LogScope.
For example:
//logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
string log_scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for logScope. |
getName()
public String getName()Identifier. 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) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. 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) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getTraceScope()
public String getTraceScope() Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
string trace_scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The traceScope. |
getTraceScopeBytes()
public ByteString getTraceScopeBytes() Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
string trace_scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for traceScope. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasUpdateTime()
public boolean hasUpdateTime()Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Scope other)
public Scope.Builder mergeFrom(Scope other)| Parameter | |
|---|---|
| Name | Description |
other |
Scope |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Scope.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Scope.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
mergeUpdateTime(Timestamp value)
public Scope.Builder mergeUpdateTime(Timestamp value)Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
setLogScope(String value)
public Scope.Builder setLogScope(String value) Required. The full resource name of the logging.googleapis.com/LogScope.
For example:
//logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
string log_scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe logScope to set. |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
setLogScopeBytes(ByteString value)
public Scope.Builder setLogScopeBytes(ByteString value) Required. The full resource name of the logging.googleapis.com/LogScope.
For example:
//logging.googleapis.com/projects/myproject/locations/global/logScopes/my-log-scope
string log_scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for logScope to set. |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
setName(String value)
public Scope.Builder setName(String value)Identifier. 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) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Scope.Builder setNameBytes(ByteString value)Identifier. 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) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
setTraceScope(String value)
public Scope.Builder setTraceScope(String value) Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
string trace_scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe traceScope to set. |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
setTraceScopeBytes(ByteString value)
public Scope.Builder setTraceScopeBytes(ByteString value) Required. The unqualified resource name of the
cloudtrace.googleapis.com/TraceScope. For example:
projects/myproject/locations/global/traceScopes/my-trace-scope
string trace_scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for traceScope to set. |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public Scope.Builder setUpdateTime(Timestamp value)Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public Scope.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. Update timestamp. Note: The Update timestamp for the default scope is initially unset.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Scope.Builder |
|