Class Policy.Builder (1.45.0)

public static final class Policy.Builder extends GeneratedMessageV3.Builder<Policy.Builder> implements PolicyOrBuilder

Implements

PolicyOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRules(Iterable<? extends PolicyRule> arg0)

public Policy.Builder addAllRules(Iterable<? extends PolicyRule> arg0)
Parameter
Name Description
arg0 Iterable<? extends com.google.iam.v2.PolicyRule>
Returns
Type Description
Policy.Builder

addRepeatedField(Descriptors.FieldDescriptor arg0, Object arg1)

public Policy.Builder addRepeatedField(Descriptors.FieldDescriptor arg0, Object arg1)
Parameters
Name Description
arg0 FieldDescriptor
arg1 Object
Returns
Type Description
Policy.Builder
Overrides

addRules(PolicyRule arg0)

public Policy.Builder addRules(PolicyRule arg0)
Parameter
Name Description
arg0 PolicyRule
Returns
Type Description
Policy.Builder

addRules(PolicyRule.Builder arg0)

public Policy.Builder addRules(PolicyRule.Builder arg0)
Parameter
Name Description
arg0 Builder
Returns
Type Description
Policy.Builder

addRules(int arg0, PolicyRule arg1)

public Policy.Builder addRules(int arg0, PolicyRule arg1)
Parameters
Name Description
arg0 int
arg1 PolicyRule
Returns
Type Description
Policy.Builder

addRules(int arg0, PolicyRule.Builder arg1)

public Policy.Builder addRules(int arg0, PolicyRule.Builder arg1)
Parameters
Name Description
arg0 int
arg1 Builder
Returns
Type Description
Policy.Builder

addRulesBuilder()

public PolicyRule.Builder addRulesBuilder()
Returns
Type Description
Builder

addRulesBuilder(int arg0)

public PolicyRule.Builder addRulesBuilder(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
Builder

build()

public Policy build()
Returns
Type Description
Policy

buildPartial()

public Policy buildPartial()
Returns
Type Description
Policy

clear()

public Policy.Builder clear()
Returns
Type Description
Policy.Builder
Overrides

clearAnnotations()

public Policy.Builder clearAnnotations()
Returns
Type Description
Policy.Builder

clearCreateTime()

public Policy.Builder clearCreateTime()
Returns
Type Description
Policy.Builder

clearDeleteTime()

public Policy.Builder clearDeleteTime()
Returns
Type Description
Policy.Builder

clearDisplayName()

public Policy.Builder clearDisplayName()
Returns
Type Description
Policy.Builder

clearEtag()

public Policy.Builder clearEtag()
Returns
Type Description
Policy.Builder

clearField(Descriptors.FieldDescriptor arg0)

public Policy.Builder clearField(Descriptors.FieldDescriptor arg0)
Parameter
Name Description
arg0 FieldDescriptor
Returns
Type Description
Policy.Builder
Overrides

clearKind()

public Policy.Builder clearKind()
Returns
Type Description
Policy.Builder

clearManagingAuthority()

public Policy.Builder clearManagingAuthority()
Returns
Type Description
Policy.Builder

clearName()

public Policy.Builder clearName()
Returns
Type Description
Policy.Builder

clearOneof(Descriptors.OneofDescriptor arg0)

public Policy.Builder clearOneof(Descriptors.OneofDescriptor arg0)
Parameter
Name Description
arg0 OneofDescriptor
Returns
Type Description
Policy.Builder
Overrides

clearRules()

public Policy.Builder clearRules()
Returns
Type Description
Policy.Builder

clearUid()

public Policy.Builder clearUid()
Returns
Type Description
Policy.Builder

clearUpdateTime()

public Policy.Builder clearUpdateTime()
Returns
Type Description
Policy.Builder

clone()

public Policy.Builder clone()
Returns
Type Description
Policy.Builder
Overrides

containsAnnotations(String arg0)

public boolean containsAnnotations(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()
Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()
Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()
Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String arg0, String arg1)

public String getAnnotationsOrDefault(String arg0, String arg1)
Parameters
Name Description
arg0 String
arg1 String
Returns
Type Description
String

getAnnotationsOrThrow(String arg0)

public String getAnnotationsOrThrow(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
String

getCreateTime()

public Timestamp getCreateTime()
Returns
Type Description
Timestamp

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()
Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()
Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Policy getDefaultInstanceForType()
Returns
Type Description
Policy

getDeleteTime()

public Timestamp getDeleteTime()
Returns
Type Description
Timestamp

getDeleteTimeBuilder()

public Timestamp.Builder getDeleteTimeBuilder()
Returns
Type Description
Builder

getDeleteTimeOrBuilder()

public TimestampOrBuilder getDeleteTimeOrBuilder()
Returns
Type Description
TimestampOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()
Returns
Type Description
String

getDisplayNameBytes()

public ByteString getDisplayNameBytes()
Returns
Type Description
ByteString

getEtag()

public String getEtag()
Returns
Type Description
String

getEtagBytes()

public ByteString getEtagBytes()
Returns
Type Description
ByteString

getKind()

public String getKind()
Returns
Type Description
String

getKindBytes()

public ByteString getKindBytes()
Returns
Type Description
ByteString

getManagingAuthority()

public String getManagingAuthority()
Returns
Type Description
String

getManagingAuthorityBytes()

public ByteString getManagingAuthorityBytes()
Returns
Type Description
ByteString

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()
Returns
Type Description
Map<String,String>

getName()

public String getName()
Returns
Type Description
String

getNameBytes()

public ByteString getNameBytes()
Returns
Type Description
ByteString

getRules(int arg0)

public PolicyRule getRules(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
PolicyRule

getRulesBuilder(int arg0)

public PolicyRule.Builder getRulesBuilder(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
Builder

getRulesBuilderList()

public List<PolicyRule.Builder> getRulesBuilderList()
Returns
Type Description
List<Builder>

getRulesCount()

public int getRulesCount()
Returns
Type Description
int

getRulesList()

public List<PolicyRule> getRulesList()
Returns
Type Description
List<PolicyRule>

getRulesOrBuilder(int arg0)

public PolicyRuleOrBuilder getRulesOrBuilder(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
PolicyRuleOrBuilder

getRulesOrBuilderList()

public List<? extends PolicyRuleOrBuilder> getRulesOrBuilderList()
Returns
Type Description
List<? extends com.google.iam.v2.PolicyRuleOrBuilder>

getUid()

public String getUid()
Returns
Type Description
String

getUidBytes()

public ByteString getUidBytes()
Returns
Type Description
ByteString

getUpdateTime()

public Timestamp getUpdateTime()
Returns
Type Description
Timestamp

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()
Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()
Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()
Returns
Type Description
boolean

hasDeleteTime()

public boolean hasDeleteTime()
Returns
Type Description
boolean

hasUpdateTime()

public boolean hasUpdateTime()
Returns
Type Description
boolean

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int arg0)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int arg0)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp arg0)

public Policy.Builder mergeCreateTime(Timestamp arg0)
Parameter
Name Description
arg0 Timestamp
Returns
Type Description
Policy.Builder

mergeDeleteTime(Timestamp arg0)

public Policy.Builder mergeDeleteTime(Timestamp arg0)
Parameter
Name Description
arg0 Timestamp
Returns
Type Description
Policy.Builder

mergeFrom(Policy arg0)

public Policy.Builder mergeFrom(Policy arg0)
Parameter
Name Description
arg0 Policy
Returns
Type Description
Policy.Builder

mergeFrom(CodedInputStream arg0, ExtensionRegistryLite arg1)

public Policy.Builder mergeFrom(CodedInputStream arg0, ExtensionRegistryLite arg1)
Parameters
Name Description
arg0 CodedInputStream
arg1 ExtensionRegistryLite
Returns
Type Description
Policy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message arg0)

public Policy.Builder mergeFrom(Message arg0)
Parameter
Name Description
arg0 Message
Returns
Type Description
Policy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet arg0)

public final Policy.Builder mergeUnknownFields(UnknownFieldSet arg0)
Parameter
Name Description
arg0 UnknownFieldSet
Returns
Type Description
Policy.Builder
Overrides

mergeUpdateTime(Timestamp arg0)

public Policy.Builder mergeUpdateTime(Timestamp arg0)
Parameter
Name Description
arg0 Timestamp
Returns
Type Description
Policy.Builder

putAllAnnotations(Map<String,String> arg0)

public Policy.Builder putAllAnnotations(Map<String,String> arg0)
Parameter
Name Description
arg0 Map<String,String>
Returns
Type Description
Policy.Builder

putAnnotations(String arg0, String arg1)

public Policy.Builder putAnnotations(String arg0, String arg1)
Parameters
Name Description
arg0 String
arg1 String
Returns
Type Description
Policy.Builder

removeAnnotations(String arg0)

public Policy.Builder removeAnnotations(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

removeRules(int arg0)

public Policy.Builder removeRules(int arg0)
Parameter
Name Description
arg0 int
Returns
Type Description
Policy.Builder

setCreateTime(Timestamp arg0)

public Policy.Builder setCreateTime(Timestamp arg0)
Parameter
Name Description
arg0 Timestamp
Returns
Type Description
Policy.Builder

setCreateTime(Timestamp.Builder arg0)

public Policy.Builder setCreateTime(Timestamp.Builder arg0)
Parameter
Name Description
arg0 Builder
Returns
Type Description
Policy.Builder

setDeleteTime(Timestamp arg0)

public Policy.Builder setDeleteTime(Timestamp arg0)
Parameter
Name Description
arg0 Timestamp
Returns
Type Description
Policy.Builder

setDeleteTime(Timestamp.Builder arg0)

public Policy.Builder setDeleteTime(Timestamp.Builder arg0)
Parameter
Name Description
arg0 Builder
Returns
Type Description
Policy.Builder

setDisplayName(String arg0)

public Policy.Builder setDisplayName(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

setDisplayNameBytes(ByteString arg0)

public Policy.Builder setDisplayNameBytes(ByteString arg0)
Parameter
Name Description
arg0 ByteString
Returns
Type Description
Policy.Builder

setEtag(String arg0)

public Policy.Builder setEtag(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

setEtagBytes(ByteString arg0)

public Policy.Builder setEtagBytes(ByteString arg0)
Parameter
Name Description
arg0 ByteString
Returns
Type Description
Policy.Builder

setField(Descriptors.FieldDescriptor arg0, Object arg1)

public Policy.Builder setField(Descriptors.FieldDescriptor arg0, Object arg1)
Parameters
Name Description
arg0 FieldDescriptor
arg1 Object
Returns
Type Description
Policy.Builder
Overrides

setKind(String arg0)

public Policy.Builder setKind(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

setKindBytes(ByteString arg0)

public Policy.Builder setKindBytes(ByteString arg0)
Parameter
Name Description
arg0 ByteString
Returns
Type Description
Policy.Builder

setManagingAuthority(String arg0)

public Policy.Builder setManagingAuthority(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

setManagingAuthorityBytes(ByteString arg0)

public Policy.Builder setManagingAuthorityBytes(ByteString arg0)
Parameter
Name Description
arg0 ByteString
Returns
Type Description
Policy.Builder

setName(String arg0)

public Policy.Builder setName(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

setNameBytes(ByteString arg0)

public Policy.Builder setNameBytes(ByteString arg0)
Parameter
Name Description
arg0 ByteString
Returns
Type Description
Policy.Builder

setRepeatedField(Descriptors.FieldDescriptor arg0, int arg1, Object arg2)

public Policy.Builder setRepeatedField(Descriptors.FieldDescriptor arg0, int arg1, Object arg2)
Parameters
Name Description
arg0 FieldDescriptor
arg1 int
arg2 Object
Returns
Type Description
Policy.Builder
Overrides

setRules(int arg0, PolicyRule arg1)

public Policy.Builder setRules(int arg0, PolicyRule arg1)
Parameters
Name Description
arg0 int
arg1 PolicyRule
Returns
Type Description
Policy.Builder

setRules(int arg0, PolicyRule.Builder arg1)

public Policy.Builder setRules(int arg0, PolicyRule.Builder arg1)
Parameters
Name Description
arg0 int
arg1 Builder
Returns
Type Description
Policy.Builder

setUid(String arg0)

public Policy.Builder setUid(String arg0)
Parameter
Name Description
arg0 String
Returns
Type Description
Policy.Builder

setUidBytes(ByteString arg0)

public Policy.Builder setUidBytes(ByteString arg0)
Parameter
Name Description
arg0 ByteString
Returns
Type Description
Policy.Builder

setUnknownFields(UnknownFieldSet arg0)

public final Policy.Builder setUnknownFields(UnknownFieldSet arg0)
Parameter
Name Description
arg0 UnknownFieldSet
Returns
Type Description
Policy.Builder
Overrides

setUpdateTime(Timestamp arg0)

public Policy.Builder setUpdateTime(Timestamp arg0)
Parameter
Name Description
arg0 Timestamp
Returns
Type Description
Policy.Builder

setUpdateTime(Timestamp.Builder arg0)

public Policy.Builder setUpdateTime(Timestamp.Builder arg0)
Parameter
Name Description
arg0 Builder
Returns
Type Description
Policy.Builder