public final class Property extends GeneratedMessageV3 implements PropertyOrBuilder
Defines project properties. API services can define properties that can be assigned to consumer projects so that backends can perform response customization without having to make additional calls or maintain additional storage. For example, Maps API defines properties that controls map tile cache period, or whether to embed a watermark in a result. These values can be set via API producer console. Only API providers can define and set these properties.
Protobuf type google.api.Property
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > PropertyImplements
PropertyOrBuilderStatic Fields
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Property getDefaultInstance()
Type | Description |
Property |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Property.Builder newBuilder()
Type | Description |
Property.Builder |
newBuilder(Property prototype)
public static Property.Builder newBuilder(Property prototype)
Name | Description |
prototype | Property |
Type | Description |
Property.Builder |
parseDelimitedFrom(InputStream input)
public static Property parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Property |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Property parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Property |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Property parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Property |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Property parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Property |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Property parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Property |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Property parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Property |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Property parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Property |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Property parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Property |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Property parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Property |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Property parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Property |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Property parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Property |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Property parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Property |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Property> parser()
Type | Description |
Parser<Property> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Property getDefaultInstanceForType()
Type | Description |
Property |
getDescription()
public String getDescription()
The description of the property
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
The description of the property
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getName()
public String getName()
The name of the property (a.k.a key).
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the property (a.k.a key).
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Property> getParserForType()
Type | Description |
Parser<Property> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getType()
public Property.PropertyType getType()
The type of this property.
.google.api.Property.PropertyType type = 2;
Type | Description |
Property.PropertyType | The type. |
getTypeValue()
public int getTypeValue()
The type of this property.
.google.api.Property.PropertyType type = 2;
Type | Description |
int | The enum numeric value on the wire for type. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Property.Builder newBuilderForType()
Type | Description |
Property.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Property.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Property.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Property.Builder toBuilder()
Type | Description |
Property.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |