Class CreateLinkRequest.Builder (3.20.4)

public static final class CreateLinkRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateLinkRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public CreateLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateLinkRequest.Builder
Overrides

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.

clone()

public CreateLinkRequest.Builder clone()
Returns
Type Description
CreateLinkRequest.Builder
Overrides

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateLinkRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateLinkRequest.Builder
Overrides
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateLinkRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateLinkRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateLinkRequest.Builder
Overrides