Class BatchGetSettingsRequest.Builder (0.7.0)

public static final class BatchGetSettingsRequest.Builder extends GeneratedMessageV3.Builder<BatchGetSettingsRequest.Builder> implements BatchGetSettingsRequestOrBuilder

Request message for BatchGetSettings.

Protobuf type google.cloud.securitycenter.settings.v1beta1.BatchGetSettingsRequest

Static Methods

getDescriptor()

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

Methods

addAllNames(Iterable<String> values)

public BatchGetSettingsRequest.Builder addAllNames(Iterable<String> values)

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Parameter
NameDescription
valuesIterable<String>

The names to add.

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

addNames(String value)

public BatchGetSettingsRequest.Builder addNames(String value)

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Parameter
NameDescription
valueString

The names to add.

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

addNamesBytes(ByteString value)

public BatchGetSettingsRequest.Builder addNamesBytes(ByteString value)

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Parameter
NameDescription
valueByteString

The bytes of the names to add.

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchGetSettingsRequest build()
Returns
TypeDescription
BatchGetSettingsRequest

buildPartial()

public BatchGetSettingsRequest buildPartial()
Returns
TypeDescription
BatchGetSettingsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNames()

public BatchGetSettingsRequest.Builder clearNames()

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchGetSettingsRequest.Builder clearParent()

Required. The relative resource name of the organization shared by all of the settings being retrieved. Format:

  • organizations/{organization}

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

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BatchGetSettingsRequest getDefaultInstanceForType()
Returns
TypeDescription
BatchGetSettingsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNames(int index)

public String getNames(int index)

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The names at the given index.

getNamesBytes(int index)

public ByteString getNamesBytes(int index)

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the names at the given index.

getNamesCount()

public int getNamesCount()

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Returns
TypeDescription
int

The count of names.

getNamesList()

public ProtocolStringList getNamesList()

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the names.

getParent()

public String getParent()

Required. The relative resource name of the organization shared by all of the settings being retrieved. Format:

  • organizations/{organization}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The relative resource name of the organization shared by all of the settings being retrieved. Format:

  • organizations/{organization}

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BatchGetSettingsRequest other)

public BatchGetSettingsRequest.Builder mergeFrom(BatchGetSettingsRequest other)
Parameter
NameDescription
otherBatchGetSettingsRequest
Returns
TypeDescription
BatchGetSettingsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNames(int index, String value)

public BatchGetSettingsRequest.Builder setNames(int index, String value)

The names of the settings to retrieve. A maximum of 1000 settings can be retrieved in a batch. Formats:

  • organizations/{organization}/settings
  • folders/{folder}/settings
  • projects/{project}/settings
  • projects/{project}/locations/{location}/clusters/{cluster}/settings
  • projects/{project}/regions/{region}/clusters/{cluster}/settings
  • projects/{project}/zones/{zone}/clusters/{cluster}/settings

repeated string names = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The names to set.

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

setParent(String value)

public BatchGetSettingsRequest.Builder setParent(String value)

Required. The relative resource name of the organization shared by all of the settings being retrieved. Format:

  • organizations/{organization}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchGetSettingsRequest.Builder setParentBytes(ByteString value)

Required. The relative resource name of the organization shared by all of the settings being retrieved. Format:

  • organizations/{organization}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
BatchGetSettingsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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