Class CreateLinkRequest.Builder (0.3.0)

public static final class CreateLinkRequest.Builder extends GeneratedMessage.Builder<CreateLinkRequest.Builder> implements CreateLinkRequestOrBuilder

Request for creating a link.

Protobuf type google.cloud.observability.v1.CreateLinkRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateLinkRequest build()
Returns
Type Description
CreateLinkRequest

buildPartial()

public CreateLinkRequest buildPartial()
Returns
Type Description
CreateLinkRequest

clear()

public CreateLinkRequest.Builder clear()
Returns
Type Description
CreateLinkRequest.Builder
Overrides
public CreateLinkRequest.Builder clearLink()

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateLinkRequest.Builder

clearLinkId()

public CreateLinkRequest.Builder clearLinkId()

Required. Id of the link to create.

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

Returns
Type Description
CreateLinkRequest.Builder

This builder for chaining.

clearParent()

public CreateLinkRequest.Builder clearParent()

Required. Name of the containing dataset for this link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

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

Returns
Type Description
CreateLinkRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateLinkRequest getDefaultInstanceForType()
Returns
Type Description
CreateLinkRequest

getDescriptorForType()

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

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Link

The link.

getLinkBuilder()

public Link.Builder getLinkBuilder()

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Link.Builder

getLinkId()

public String getLinkId()

Required. Id of the link to create.

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

Returns
Type Description
String

The linkId.

getLinkIdBytes()

public ByteString getLinkIdBytes()

Required. Id of the link to create.

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

Returns
Type Description
ByteString

The bytes for linkId.

getLinkOrBuilder()

public LinkOrBuilder getLinkOrBuilder()

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LinkOrBuilder

getParent()

public String getParent()

Required. Name of the containing dataset for this link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Name of the containing dataset for this link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

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

Returns
Type Description
ByteString

The bytes for parent.

public boolean hasLink()

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the link field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateLinkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateLinkRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateLinkRequest.Builder
Overrides
public CreateLinkRequest.Builder mergeLink(Link value)

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Link
Returns
Type Description
CreateLinkRequest.Builder
public CreateLinkRequest.Builder setLink(Link value)

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Link
Returns
Type Description
CreateLinkRequest.Builder
public CreateLinkRequest.Builder setLink(Link.Builder builderForValue)

Required. Link to create.

.google.cloud.observability.v1.Link link = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Link.Builder
Returns
Type Description
CreateLinkRequest.Builder

setLinkId(String value)

public CreateLinkRequest.Builder setLinkId(String value)

Required. Id of the link to create.

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

Parameter
Name Description
value String

The linkId to set.

Returns
Type Description
CreateLinkRequest.Builder

This builder for chaining.

setLinkIdBytes(ByteString value)

public CreateLinkRequest.Builder setLinkIdBytes(ByteString value)

Required. Id of the link to create.

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

Parameter
Name Description
value ByteString

The bytes for linkId to set.

Returns
Type Description
CreateLinkRequest.Builder

This builder for chaining.

setParent(String value)

public CreateLinkRequest.Builder setParent(String value)

Required. Name of the containing dataset for this link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateLinkRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateLinkRequest.Builder setParentBytes(ByteString value)

Required. Name of the containing dataset for this link. The format is:

projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]

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

This builder for chaining.