Package com.google.cloudbuild.v1
Class PubsubConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PubsubConfig.Builder>
com.google.cloudbuild.v1.PubsubConfig.Builder
- All Implemented Interfaces:
PubsubConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PubsubConfig
public static final class PubsubConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Service account that will make the push request.Potential issues with the underlying Pub/Sub subscription configuration.Output only.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorService account that will make the push request.com.google.protobuf.ByteStringService account that will make the push request.getState()Potential issues with the underlying Pub/Sub subscription configuration.intPotential issues with the underlying Pub/Sub subscription configuration.Output only.com.google.protobuf.ByteStringOutput only.getTopic()Optional.com.google.protobuf.ByteStringOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PubsubConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setServiceAccountEmail(String value) Service account that will make the push request.setServiceAccountEmailBytes(com.google.protobuf.ByteString value) Service account that will make the push request.setState(PubsubConfig.State value) Potential issues with the underlying Pub/Sub subscription configuration.setStateValue(int value) Potential issues with the underlying Pub/Sub subscription configuration.setSubscription(String value) Output only.setSubscriptionBytes(com.google.protobuf.ByteString value) Output only.Optional.setTopicBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PubsubConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PubsubConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PubsubConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PubsubConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PubsubConfig.Builder>
-
mergeFrom
public PubsubConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PubsubConfig.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getSubscriptionin interfacePubsubConfigOrBuilder- Returns:
- The subscription.
-
getSubscriptionBytes
public com.google.protobuf.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) = { ... }- Specified by:
getSubscriptionBytesin interfacePubsubConfigOrBuilder- Returns:
- The bytes for subscription.
-
setSubscription
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) = { ... }- Parameters:
value- The subscription to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSubscriptionBytes
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) = { ... }- Parameters:
value- The bytes for subscription to set.- Returns:
- This builder for chaining.
-
getTopic
Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getTopicin interfacePubsubConfigOrBuilder- Returns:
- The topic.
-
getTopicBytes
public com.google.protobuf.ByteString getTopicBytes()Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getTopicBytesin interfacePubsubConfigOrBuilder- Returns:
- The bytes for topic.
-
setTopic
Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The topic to set.- Returns:
- This builder for chaining.
-
clearTopic
Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTopicBytes
Optional. The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for topic to set.- Returns:
- This builder for chaining.
-
getServiceAccountEmail
Service account that will make the push request.
string service_account_email = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountEmailin interfacePubsubConfigOrBuilder- Returns:
- The serviceAccountEmail.
-
getServiceAccountEmailBytes
public com.google.protobuf.ByteString getServiceAccountEmailBytes()Service account that will make the push request.
string service_account_email = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getServiceAccountEmailBytesin interfacePubsubConfigOrBuilder- Returns:
- The bytes for serviceAccountEmail.
-
setServiceAccountEmail
Service account that will make the push request.
string service_account_email = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearServiceAccountEmail
Service account that will make the push request.
string service_account_email = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setServiceAccountEmailBytes
Service account that will make the push request.
string service_account_email = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for serviceAccountEmail to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getStateValuein interfacePubsubConfigOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;- Specified by:
getStatein interfacePubsubConfigOrBuilder- Returns:
- The state.
-
setState
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
.google.devtools.cloudbuild.v1.PubsubConfig.State state = 4;- Returns:
- This builder for chaining.
-