Class CreateLinkRequest.Builder (3.15.11)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides

build()

public CreateLinkRequest build()
Returns
TypeDescription
CreateLinkRequest

buildPartial()

public CreateLinkRequest buildPartial()
Returns
TypeDescription
CreateLinkRequest

clear()

public CreateLinkRequest.Builder clear()
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides
public CreateLinkRequest.Builder clearLink()

Required. The new link.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateLinkRequest.Builder

This builder for chaining.

clone()

public CreateLinkRequest.Builder clone()
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateLinkRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public Link getLink()

Required. The new link.

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

Returns
TypeDescription
Link

The link.

getLinkBuilder()

public Link.Builder getLinkBuilder()

Required. The new link.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

public boolean hasLink()

Required. The new link.

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

Returns
TypeDescription
boolean

Whether the link field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateLinkRequest other)

public CreateLinkRequest.Builder mergeFrom(CreateLinkRequest other)
Parameter
NameDescription
otherCreateLinkRequest
Returns
TypeDescription
CreateLinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateLinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateLinkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueLink
Returns
TypeDescription
CreateLinkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueLink
Returns
TypeDescription
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
NameDescription
builderForValueLink.Builder
Returns
TypeDescription
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
NameDescription
valueString

The linkId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for linkId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateLinkRequest.Builder
Overrides