Class PubsubConfig.Builder (3.5.2)

public static final class PubsubConfig.Builder extends GeneratedMessageV3.Builder<PubsubConfig.Builder> implements PubsubConfigOrBuilder

PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

Protobuf type google.devtools.cloudbuild.v1.PubsubConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PubsubConfig build()
Returns
TypeDescription
PubsubConfig

buildPartial()

public PubsubConfig buildPartial()
Returns
TypeDescription
PubsubConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearServiceAccountEmail()

public PubsubConfig.Builder clearServiceAccountEmail()

Service account that will make the push request.

string service_account_email = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

clearState()

public PubsubConfig.Builder clearState()

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

clearSubscription()

public PubsubConfig.Builder clearSubscription()

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

string subscription = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

clearTopic()

public PubsubConfig.Builder clearTopic()

The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public PubsubConfig getDefaultInstanceForType()
Returns
TypeDescription
PubsubConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceAccountEmail()

public String getServiceAccountEmail()

Service account that will make the push request.

string service_account_email = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The serviceAccountEmail.

getServiceAccountEmailBytes()

public ByteString getServiceAccountEmailBytes()

Service account that will make the push request.

string service_account_email = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for serviceAccountEmail.

getState()

public PubsubConfig.State getState()

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;

Returns
TypeDescription
PubsubConfig.State

The state.

getStateValue()

public int getStateValue()

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubscription()

public String getSubscription()

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

string subscription = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

string subscription = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for subscription.

getTopic()

public String getTopic()

The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The topic.

getTopicBytes()

public ByteString getTopicBytes()

The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

string topic = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for topic.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PubsubConfig other)

public PubsubConfig.Builder mergeFrom(PubsubConfig other)
Parameter
NameDescription
otherPubsubConfig
Returns
TypeDescription
PubsubConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setServiceAccountEmail(String value)

public PubsubConfig.Builder setServiceAccountEmail(String value)

Service account that will make the push request.

string service_account_email = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The serviceAccountEmail to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setServiceAccountEmailBytes(ByteString value)

public PubsubConfig.Builder setServiceAccountEmailBytes(ByteString value)

Service account that will make the push request.

string service_account_email = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for serviceAccountEmail to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setState(PubsubConfig.State value)

public PubsubConfig.Builder setState(PubsubConfig.State value)

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;

Parameter
NameDescription
valuePubsubConfig.State

The state to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setStateValue(int value)

public PubsubConfig.Builder setStateValue(int value)

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setSubscription(String value)

public PubsubConfig.Builder setSubscription(String value)

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

string subscription = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public PubsubConfig.Builder setSubscriptionBytes(ByteString value)

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

string subscription = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setTopic(String value)

public PubsubConfig.Builder setTopic(String value)

The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

string topic = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The topic to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setTopicBytes(ByteString value)

public PubsubConfig.Builder setTopicBytes(ByteString value)

The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

string topic = 2 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for topic to set.

Returns
TypeDescription
PubsubConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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