Class Publisher.Builder (2.5.0)

public static final class Publisher.Builder extends GeneratedMessageV3.Builder<Publisher.Builder> implements PublisherOrBuilder

Contains details of the listing publisher.

Protobuf type google.cloud.bigquery.dataexchange.v1beta1.Publisher

Implements

PublisherOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Publisher build()
Returns
TypeDescription
Publisher

buildPartial()

public Publisher buildPartial()
Returns
TypeDescription
Publisher

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public Publisher.Builder clearName()

Optional. Name of the listing publisher.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Publisher.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Publisher.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Publisher.Builder
Overrides

clearPrimaryContact()

public Publisher.Builder clearPrimaryContact()

Optional. Email or URL of the listing publisher. Max Length: 1000 bytes.

string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Publisher.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public Publisher getDefaultInstanceForType()
Returns
TypeDescription
Publisher

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Optional. Name of the listing publisher.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the listing publisher.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for name.

getPrimaryContact()

public String getPrimaryContact()

Optional. Email or URL of the listing publisher. Max Length: 1000 bytes.

string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The primaryContact.

getPrimaryContactBytes()

public ByteString getPrimaryContactBytes()

Optional. Email or URL of the listing publisher. Max Length: 1000 bytes.

string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for primaryContact.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Publisher other)

public Publisher.Builder mergeFrom(Publisher other)
Parameter
NameDescription
otherPublisher
Returns
TypeDescription
Publisher.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Publisher.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Publisher.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public Publisher.Builder setName(String value)

Optional. Name of the listing publisher.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Publisher.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Publisher.Builder setNameBytes(ByteString value)

Optional. Name of the listing publisher.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Publisher.Builder

This builder for chaining.

setPrimaryContact(String value)

public Publisher.Builder setPrimaryContact(String value)

Optional. Email or URL of the listing publisher. Max Length: 1000 bytes.

string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The primaryContact to set.

Returns
TypeDescription
Publisher.Builder

This builder for chaining.

setPrimaryContactBytes(ByteString value)

public Publisher.Builder setPrimaryContactBytes(ByteString value)

Optional. Email or URL of the listing publisher. Max Length: 1000 bytes.

string primary_contact = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for primaryContact to set.

Returns
TypeDescription
Publisher.Builder

This builder for chaining.

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

public Publisher.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Publisher.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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