Class VpcScSettings.Builder (0.9.0)

public static final class VpcScSettings.Builder extends GeneratedMessage.Builder<VpcScSettings.Builder> implements VpcScSettingsOrBuilder

VPC-SC settings for the app.

Protobuf type google.cloud.ces.v1beta.VpcScSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAllowedOrigins(Iterable<String> values)

public VpcScSettings.Builder addAllAllowedOrigins(Iterable<String> values)

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Parameter
Name Description
values Iterable<String>

The allowedOrigins to add.

Returns
Type Description
VpcScSettings.Builder

This builder for chaining.

addAllowedOrigins(String value)

public VpcScSettings.Builder addAllowedOrigins(String value)

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Parameter
Name Description
value String

The allowedOrigins to add.

Returns
Type Description
VpcScSettings.Builder

This builder for chaining.

addAllowedOriginsBytes(ByteString value)

public VpcScSettings.Builder addAllowedOriginsBytes(ByteString value)

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Parameter
Name Description
value ByteString

The bytes of the allowedOrigins to add.

Returns
Type Description
VpcScSettings.Builder

This builder for chaining.

build()

public VpcScSettings build()
Returns
Type Description
VpcScSettings

buildPartial()

public VpcScSettings buildPartial()
Returns
Type Description
VpcScSettings

clear()

public VpcScSettings.Builder clear()
Returns
Type Description
VpcScSettings.Builder
Overrides

clearAllowedOrigins()

public VpcScSettings.Builder clearAllowedOrigins()

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Returns
Type Description
VpcScSettings.Builder

This builder for chaining.

getAllowedOrigins(int index)

public String getAllowedOrigins(int index)

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedOrigins at the given index.

getAllowedOriginsBytes(int index)

public ByteString getAllowedOriginsBytes(int index)

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedOrigins at the given index.

getAllowedOriginsCount()

public int getAllowedOriginsCount()

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Returns
Type Description
int

The count of allowedOrigins.

getAllowedOriginsList()

public ProtocolStringList getAllowedOriginsList()

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Returns
Type Description
ProtocolStringList

A list containing the allowedOrigins.

getDefaultInstanceForType()

public VpcScSettings getDefaultInstanceForType()
Returns
Type Description
VpcScSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VpcScSettings other)

public VpcScSettings.Builder mergeFrom(VpcScSettings other)
Parameter
Name Description
other VpcScSettings
Returns
Type Description
VpcScSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpcScSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VpcScSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VpcScSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VpcScSettings.Builder
Overrides

setAllowedOrigins(int index, String value)

public VpcScSettings.Builder setAllowedOrigins(int index, String value)

Optional. The allowed HTTP(s) origins that OpenAPI tools in the App are able to directly call when VPC Service Controls are enabled. These strings must match the origin exactly, including the port if specified. For example, "https://example.com" or "https://example.com:443". This list does not yet apply to Python tools that may make direct HTTP calls.

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

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedOrigins to set.

Returns
Type Description
VpcScSettings.Builder

This builder for chaining.