public static final class ObjectContexts.Builder extends GeneratedMessage.Builder<ObjectContexts.Builder> implements ObjectContextsOrBuilder
All contexts of an object grouped by type.
Protobuf type google.storage.v2.ObjectContexts
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
build()
public ObjectContexts build()
buildPartial()
public ObjectContexts buildPartial()
clear()
public ObjectContexts.Builder clear()
Overrides
clearCustom()
public ObjectContexts.Builder clearCustom()
containsCustom(String key)
public boolean containsCustom(String key)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
getCustom() (deprecated)
public Map<String,ObjectCustomContextPayload> getCustom()
getCustomCount()
public int getCustomCount()
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getCustomMap()
public Map<String,ObjectCustomContextPayload> getCustomMap()
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
getCustomOrDefault(String key, ObjectCustomContextPayload defaultValue)
public ObjectCustomContextPayload getCustomOrDefault(String key, ObjectCustomContextPayload defaultValue)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
getCustomOrThrow(String key)
public ObjectCustomContextPayload getCustomOrThrow(String key)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
getDefaultInstanceForType()
public ObjectContexts getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMutableCustom() (deprecated)
public Map<String,ObjectCustomContextPayload> getMutableCustom()
Use alternate mutation accessors instead.
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ObjectContexts.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ObjectContexts.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(ObjectContexts other)
public ObjectContexts.Builder mergeFrom(ObjectContexts other)
putAllCustom(Map<String,ObjectCustomContextPayload> values)
public ObjectContexts.Builder putAllCustom(Map<String,ObjectCustomContextPayload> values)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
putCustom(String key, ObjectCustomContextPayload value)
public ObjectContexts.Builder putCustom(String key, ObjectCustomContextPayload value)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
putCustomBuilderIfAbsent(String key)
public ObjectCustomContextPayload.Builder putCustomBuilderIfAbsent(String key)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|
removeCustom(String key)
public ObjectContexts.Builder removeCustom(String key)
Optional. User-defined object contexts.
The maximum key or value size is 256 characters.
The maximum number of entries is 50.
The maximum total serialized size of all entries is 25KiB.
map<string, .google.storage.v2.ObjectCustomContextPayload> custom = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
key |
String
|