Class CreateLinkRequest.Builder (3.24.0)

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

The parameters to CreateLink.

Protobuf type google.logging.v2.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. The new link.

.google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateLinkRequest.Builder

clearLinkId()

public CreateLinkRequest.Builder clearLinkId()

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

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

Returns
Type Description
CreateLinkRequest.Builder

This builder for chaining.

clearParent()

public CreateLinkRequest.Builder clearParent()

Required. The full resource name of the bucket to create a link for.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The new link.

.google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Link

The link.

getLinkBuilder()

public Link.Builder getLinkBuilder()

Required. The new link.

.google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Link.Builder

getLinkId()

public String getLinkId()

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

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

Returns
Type Description
String

The linkId.

getLinkIdBytes()

public ByteString getLinkIdBytes()

Required. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

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

Returns
Type Description
ByteString

The bytes for linkId.

getLinkOrBuilder()

public LinkOrBuilder getLinkOrBuilder()

Required. The new link.

.google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LinkOrBuilder

getParent()

public String getParent()

Required. The full resource name of the bucket to create a link for.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"

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 bucket to create a link for.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The new link.

.google.logging.v2.Link link = 2 [(.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. The new link.

.google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED];

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

Required. The new link.

.google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED];

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

Required. The new link.

.google.logging.v2.Link link = 2 [(.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. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

string link_id = 3 [(.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. The ID to use for the link. The link_id can have up to 100 characters. A valid link_id must only have alphanumeric characters and underscores within it.

string link_id = 3 [(.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. The full resource name of the bucket to create a link for.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The full resource name of the bucket to create a link for.

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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.