Class ProjectProperties.Builder (2.28.0)

public static final class ProjectProperties.Builder extends GeneratedMessageV3.Builder<ProjectProperties.Builder> implements ProjectPropertiesOrBuilder

A descriptor for defining project properties for a service. One service may have many consumer projects, and the service may want to behave differently depending on some properties on the project. For example, a project may be associated with a school, or a business, or a government agency, a business type property on the project may affect how a service responds to the client. This descriptor defines which properties are allowed to be set on a project.

Example:

project_properties:
  properties:
  - name: NO_WATERMARK
    type: BOOL
    description: Allows usage of the API without watermarks.
  - name: EXTENDED_TILE_CACHE_PERIOD
    type: INT64

Protobuf type google.api.ProjectProperties

Static Methods

getDescriptor()

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

Methods

addAllProperties(Iterable<? extends Property> values)

public ProjectProperties.Builder addAllProperties(Iterable<? extends Property> values)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.api.Property>
Returns
TypeDescription
ProjectProperties.Builder

addProperties(Property value)

public ProjectProperties.Builder addProperties(Property value)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
valueProperty
Returns
TypeDescription
ProjectProperties.Builder

addProperties(Property.Builder builderForValue)

public ProjectProperties.Builder addProperties(Property.Builder builderForValue)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
builderForValueProperty.Builder
Returns
TypeDescription
ProjectProperties.Builder

addProperties(int index, Property value)

public ProjectProperties.Builder addProperties(int index, Property value)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameters
NameDescription
indexint
valueProperty
Returns
TypeDescription
ProjectProperties.Builder

addProperties(int index, Property.Builder builderForValue)

public ProjectProperties.Builder addProperties(int index, Property.Builder builderForValue)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameters
NameDescription
indexint
builderForValueProperty.Builder
Returns
TypeDescription
ProjectProperties.Builder

addPropertiesBuilder()

public Property.Builder addPropertiesBuilder()

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Returns
TypeDescription
Property.Builder

addPropertiesBuilder(int index)

public Property.Builder addPropertiesBuilder(int index)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Property.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ProjectProperties build()
Returns
TypeDescription
ProjectProperties

buildPartial()

public ProjectProperties buildPartial()
Returns
TypeDescription
ProjectProperties

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperties()

public ProjectProperties.Builder clearProperties()

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Returns
TypeDescription
ProjectProperties.Builder

clone()

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

getDefaultInstanceForType()

public ProjectProperties getDefaultInstanceForType()
Returns
TypeDescription
ProjectProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProperties(int index)

public Property getProperties(int index)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Property

getPropertiesBuilder(int index)

public Property.Builder getPropertiesBuilder(int index)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Property.Builder

getPropertiesBuilderList()

public List<Property.Builder> getPropertiesBuilderList()

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Returns
TypeDescription
List<Builder>

getPropertiesCount()

public int getPropertiesCount()

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Returns
TypeDescription
int

getPropertiesList()

public List<Property> getPropertiesList()

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Returns
TypeDescription
List<Property>

getPropertiesOrBuilder(int index)

public PropertyOrBuilder getPropertiesOrBuilder(int index)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PropertyOrBuilder

getPropertiesOrBuilderList()

public List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Returns
TypeDescription
List<? extends com.google.api.PropertyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ProjectProperties other)

public ProjectProperties.Builder mergeFrom(ProjectProperties other)
Parameter
NameDescription
otherProjectProperties
Returns
TypeDescription
ProjectProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeProperties(int index)

public ProjectProperties.Builder removeProperties(int index)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProjectProperties.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProperties(int index, Property value)

public ProjectProperties.Builder setProperties(int index, Property value)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameters
NameDescription
indexint
valueProperty
Returns
TypeDescription
ProjectProperties.Builder

setProperties(int index, Property.Builder builderForValue)

public ProjectProperties.Builder setProperties(int index, Property.Builder builderForValue)

List of per consumer project-specific properties.

repeated .google.api.Property properties = 1;

Parameters
NameDescription
indexint
builderForValueProperty.Builder
Returns
TypeDescription
ProjectProperties.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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