Class CreateTraceScopeRequest.Builder (0.3.0)

public static final class CreateTraceScopeRequest.Builder extends GeneratedMessage.Builder<CreateTraceScopeRequest.Builder> implements CreateTraceScopeRequestOrBuilder

Request for creating a TraceScope.

Protobuf type google.cloud.observability.v1.CreateTraceScopeRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateTraceScopeRequest build()
Returns
Type Description
CreateTraceScopeRequest

buildPartial()

public CreateTraceScopeRequest buildPartial()
Returns
Type Description
CreateTraceScopeRequest

clear()

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

clearParent()

public CreateTraceScopeRequest.Builder clearParent()

Required. The full resource name of the location where the trace scope should be created

projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

projects/my-project/locations/global

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

Returns
Type Description
CreateTraceScopeRequest.Builder

This builder for chaining.

clearTraceScope()

public CreateTraceScopeRequest.Builder clearTraceScope()

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateTraceScopeRequest.Builder

clearTraceScopeId()

public CreateTraceScopeRequest.Builder clearTraceScopeId()

Required. A client-assigned identifier for the trace scope.

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

Returns
Type Description
CreateTraceScopeRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateTraceScopeRequest getDefaultInstanceForType()
Returns
Type Description
CreateTraceScopeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The full resource name of the location where the trace scope should be created

projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

projects/my-project/locations/global

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The full resource name of the location where the trace scope should be created

projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

projects/my-project/locations/global

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

Returns
Type Description
ByteString

The bytes for parent.

getTraceScope()

public TraceScope getTraceScope()

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TraceScope

The traceScope.

getTraceScopeBuilder()

public TraceScope.Builder getTraceScopeBuilder()

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TraceScope.Builder

getTraceScopeId()

public String getTraceScopeId()

Required. A client-assigned identifier for the trace scope.

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

Returns
Type Description
String

The traceScopeId.

getTraceScopeIdBytes()

public ByteString getTraceScopeIdBytes()

Required. A client-assigned identifier for the trace scope.

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

Returns
Type Description
ByteString

The bytes for traceScopeId.

getTraceScopeOrBuilder()

public TraceScopeOrBuilder getTraceScopeOrBuilder()

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TraceScopeOrBuilder

hasTraceScope()

public boolean hasTraceScope()

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the traceScope field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateTraceScopeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTraceScope(TraceScope value)

public CreateTraceScopeRequest.Builder mergeTraceScope(TraceScope value)

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TraceScope
Returns
Type Description
CreateTraceScopeRequest.Builder

setParent(String value)

public CreateTraceScopeRequest.Builder setParent(String value)

Required. The full resource name of the location where the trace scope should be created

projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

projects/my-project/locations/global

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateTraceScopeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateTraceScopeRequest.Builder setParentBytes(ByteString value)

Required. The full resource name of the location where the trace scope should be created

projects/[PROJECT_ID]/locations/[LOCATION_ID]

For example:

projects/my-project/locations/global

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
CreateTraceScopeRequest.Builder

This builder for chaining.

setTraceScope(TraceScope value)

public CreateTraceScopeRequest.Builder setTraceScope(TraceScope value)

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TraceScope
Returns
Type Description
CreateTraceScopeRequest.Builder

setTraceScope(TraceScope.Builder builderForValue)

public CreateTraceScopeRequest.Builder setTraceScope(TraceScope.Builder builderForValue)

Required. The new trace scope.

.google.cloud.observability.v1.TraceScope trace_scope = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TraceScope.Builder
Returns
Type Description
CreateTraceScopeRequest.Builder

setTraceScopeId(String value)

public CreateTraceScopeRequest.Builder setTraceScopeId(String value)

Required. A client-assigned identifier for the trace scope.

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

Parameter
Name Description
value String

The traceScopeId to set.

Returns
Type Description
CreateTraceScopeRequest.Builder

This builder for chaining.

setTraceScopeIdBytes(ByteString value)

public CreateTraceScopeRequest.Builder setTraceScopeIdBytes(ByteString value)

Required. A client-assigned identifier for the trace scope.

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

Parameter
Name Description
value ByteString

The bytes for traceScopeId to set.

Returns
Type Description
CreateTraceScopeRequest.Builder

This builder for chaining.