Class ProjectProperties (2.33.0)

public final class ProjectProperties extends GeneratedMessageV3 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 Fields

PROPERTIES_FIELD_NUMBER

public static final int PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ProjectProperties getDefaultInstance()
Returns
TypeDescription
ProjectProperties

getDescriptor()

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

newBuilder()

public static ProjectProperties.Builder newBuilder()
Returns
TypeDescription
ProjectProperties.Builder

newBuilder(ProjectProperties prototype)

public static ProjectProperties.Builder newBuilder(ProjectProperties prototype)
Parameter
NameDescription
prototypeProjectProperties
Returns
TypeDescription
ProjectProperties.Builder

parseDelimitedFrom(InputStream input)

public static ProjectProperties parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProjectProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ProjectProperties parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ProjectProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ProjectProperties parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ProjectProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ProjectProperties parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ProjectProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ProjectProperties parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ProjectProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ProjectProperties parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ProjectProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ProjectProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ProjectProperties> parser()
Returns
TypeDescription
Parser<ProjectProperties>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ProjectProperties getDefaultInstanceForType()
Returns
TypeDescription
ProjectProperties

getParserForType()

public Parser<ProjectProperties> getParserForType()
Returns
TypeDescription
Parser<ProjectProperties>
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

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>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ProjectProperties.Builder newBuilderForType()
Returns
TypeDescription
ProjectProperties.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ProjectProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ProjectProperties.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ProjectProperties.Builder toBuilder()
Returns
TypeDescription
ProjectProperties.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException