Class CloudRun.Builder (1.31.0)

public static final class CloudRun.Builder extends GeneratedMessageV3.Builder<CloudRun.Builder> implements CloudRunOrBuilder

Represents a Cloud Run destination.

Protobuf type google.cloud.eventarc.v1.CloudRun

Implements

CloudRunOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudRun build()
Returns
TypeDescription
CloudRun

buildPartial()

public CloudRun buildPartial()
Returns
TypeDescription
CloudRun

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPath()

public CloudRun.Builder clearPath()

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

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

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

clearRegion()

public CloudRun.Builder clearRegion()

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

clearService()

public CloudRun.Builder clearService()

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CloudRun getDefaultInstanceForType()
Returns
TypeDescription
CloudRun

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPath()

public String getPath()

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

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

Returns
TypeDescription
String

The path.

getPathBytes()

public ByteString getPathBytes()

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

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

Returns
TypeDescription
ByteString

The bytes for path.

getRegion()

public String getRegion()

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for region.

getService()

public String getService()

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for service.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudRun other)

public CloudRun.Builder mergeFrom(CloudRun other)
Parameter
NameDescription
otherCloudRun
Returns
TypeDescription
CloudRun.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPath(String value)

public CloudRun.Builder setPath(String value)

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

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

Parameter
NameDescription
valueString

The path to set.

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

setPathBytes(ByteString value)

public CloudRun.Builder setPathBytes(ByteString value)

Optional. The relative path on the Cloud Run service the events should be sent to.

The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".

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

Parameter
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

setRegion(String value)

public CloudRun.Builder setRegion(String value)

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public CloudRun.Builder setRegionBytes(ByteString value)

Required. The region the Cloud Run service is deployed in.

string region = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

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

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

setService(String value)

public CloudRun.Builder setService(String value)

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The service to set.

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public CloudRun.Builder setServiceBytes(ByteString value)

Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services.

Only services located in the same project as the trigger object can be addressed.

string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
CloudRun.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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